|
|
@ -153,10 +153,23 @@ apars_handle_CSI(char leadchar, int *params, int count, char keychar) |
|
|
|
|
|
|
|
|
|
|
|
switch (keychar) { |
|
|
|
switch (keychar) { |
|
|
|
// CUU CUD CUF CUB
|
|
|
|
// CUU CUD CUF CUB
|
|
|
|
case 'A': screen_cursor_move(-n1, 0, false); break; |
|
|
|
case 'a': |
|
|
|
case 'B': screen_cursor_move(n1, 0, false); break; |
|
|
|
case 'A': |
|
|
|
case 'C': screen_cursor_move(0, n1, false); break; |
|
|
|
screen_cursor_move(-n1, 0, false); |
|
|
|
case 'D': screen_cursor_move(0, -n1, false); break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case 'e': |
|
|
|
|
|
|
|
case 'B': |
|
|
|
|
|
|
|
screen_cursor_move(n1, 0, false); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case 'C': |
|
|
|
|
|
|
|
screen_cursor_move(0, n1, false); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case 'D': |
|
|
|
|
|
|
|
screen_cursor_move(0, -n1, false); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
case 'E': // CNL - Cursor Next Line
|
|
|
|
case 'E': // CNL - Cursor Next Line
|
|
|
|
screen_cursor_move(n1, 0, false); |
|
|
|
screen_cursor_move(n1, 0, false); |
|
|
@ -412,6 +425,10 @@ void ICACHE_FLASH_ATTR apars_handle_shortCode(char c) |
|
|
|
screen_cursor_set_x(0); |
|
|
|
screen_cursor_set_x(0); |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case 'F': // bottom left
|
|
|
|
|
|
|
|
screen_cursor_set(termconf_scratch.height-1, 0); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
case 'D': // move cursor down, scroll screen up if needed
|
|
|
|
case 'D': // move cursor down, scroll screen up if needed
|
|
|
|
screen_cursor_move(1, 0, true); |
|
|
|
screen_cursor_move(1, 0, true); |
|
|
|
break; |
|
|
|
break; |
|
|
|