File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ size_t common_hal_terminalio_terminal_write(terminalio_terminal_obj_t *self, con
118118 }
119119 } else if (c == 0x1b ) {
120120 // Handle commands of the form [ESC].<digits><command-char> where . is not yet known.
121- int16_t vt_args [3 ] = {0 , -1 , -1 };
121+ int16_t vt_args [3 ] = {0 , 0 , 0 };
122122 uint8_t j = 1 ;
123123 #if CIRCUITPY_TERMINALIO_VT100
124124 uint8_t n_args = 1 ;
@@ -192,9 +192,6 @@ size_t common_hal_terminalio_terminal_write(terminalio_terminal_obj_t *self, con
192192 if (vt_args [0 ] > 0 ) {
193193 vt_args [0 ]-- ;
194194 }
195- if (vt_args [1 ] == -1 ) {
196- vt_args [1 ] = 0 ;
197- }
198195 if (vt_args [1 ] > 0 ) {
199196 vt_args [1 ]-- ;
200197 }
@@ -270,6 +267,7 @@ size_t common_hal_terminalio_terminal_write(terminalio_terminal_obj_t *self, con
270267 start_y = self -> cursor_y ;
271268 i ++ ;
272269 } else if (i [0 ] == 'D' ) {
270+ /*
273271 if (self->cursor_y != scrnmod(self->vt_scroll_end)) {
274272 self->cursor_y = (self->cursor_y + 1) % self->scroll_area->height_in_tiles;
275273 } else {
@@ -294,6 +292,8 @@ size_t common_hal_terminalio_terminal_write(terminalio_terminal_obj_t *self, con
294292 self->cursor_x = 0;
295293 }
296294 start_y = self->cursor_y;
295+ */
296+ self -> cursor_y ++ ;
297297 i ++ ;
298298 #endif
299299 } else if (i [0 ] == ']' && c == ';' ) {
You can’t perform that action at this time.
0 commit comments