Update the serial console as to mimic the LCD

Working for clear screen, Backspace, and newline. Still needs to be
implemented to match the columns and rows of the LCD (which will require
that lcdLib.c provide access to currentLineChars and currentLineNum via
functions like getCurrentRow and getCurrentColumn.

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
This commit is contained in:
Collin J. Doering 2015-10-08 03:15:25 -04:00
parent 8ab9c5a4b0
commit 854876217a

View File

@ -50,10 +50,17 @@ int main(void) {
switch (serialChar) {
case '\r':
writeStringToLCD("\r\n");
transmitString("\n\e[1E\r");
break;
;
case '\f':
writeCharToLCD(serialChar);
transmitString("\e[2J\e[1;1H");
break;
;
case 0x7f: // Backspace (sent as delete)
writeStringToLCD("\b \b");
transmitString("\e[1D \e[1D");
break;
;
default: