Search This Blog

Sunday, July 29, 2018

ChibiTerm - Text console display test (bug fixed)

Projects / ChibiTerm  Original post date: 03/15/2016

VGA output on ChibiTerm
I copy/paste the console log from my router (running Tomato ARM) into a terminal program on the PC connected to the breadboard and got the following screen. First proof of concept as a terminal for an embedded system.

The first character of each line is missing for some reasons. Other than that, it is what I saw on the console log.

Text pasted that was supposed to be the output
My quick and dirty dumb terminal.


The fun part about a text character buffer in memory is that standard C library memory routines can be used for text functions. memmove() is a smart optimized memory copy routine that can deal with overlapping source/destination and is perfect for text scrolling.


Found the bug for the missing first character!


The line should have been "if(Cursor_Pos >= VGA_TEXT_X*VGA_TEXT_Y)" as it is a 0 based array. The last character it added is outside of the buffer and thus not showing up.
With that fixed, the left most column is where it should be.


I haven't worked on the PS/2 driver beyond getting the raw key codes. I haven't written the more advanced terminal escape sequence characters and yet to figure out the minimum amount I need to actually use this as a terminal to edit a file.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.