This commit is contained in:
y4my4my4m 2023-05-15 01:55:06 +09:00
parent f4cbd0eb12
commit d1fedf1da5

View file

@ -91,8 +91,7 @@ U0 HandleControlCodes(U8 ch) {
break; break;
case 13: // CR (Carriage Return) case 13: // CR (Carriage Return)
// DocPrint(term.doc, "\r"); // DocPrint(term.doc, "\r");
// DocPrint(term.doc, "$$CM+LX+PRY,LE=0,RE=1$$"); DocPrint(term.doc, "$$CM+LX+PRY,LE=0,RE=1$$");
CursorUpdate(term.task, 0,1);
break; break;
case 14: // SO (Shift Out) - Switch to an alternate character set case 14: // SO (Shift Out) - Switch to an alternate character set
case 15: // SI (Shift In) - Switch back to the default character set case 15: // SI (Shift In) - Switch back to the default character set
@ -537,9 +536,9 @@ U0 ANSIParse()
term.current_row = row; term.current_row = row;
term.current_col = col; term.current_col = col;
// can use WinCursorPosSet instead??
CursorUpdate(term.task, term.current_col, term.current_row); // WinCursorPosSet(term.task, term.current_col-1, term.current_row-1);
// DocPrint(term.doc, "$$CM+LX+TY,LE=%d,RE=%d$$", term.current_col-1, term.current_row-1); DocPrint(term.doc, "$$CM+LX+TY,LE=%d,RE=%d$$", term.current_col-1, term.current_row-1);
term.current_row = 1; term.current_row = 1;
term.current_col = 1; term.current_col = 1;