os: fix 'CUU' terminal command
Decrement the y position to move the cursor up. Fixes #3379
This commit is contained in:
parent
d417d26ce8
commit
f99a1d78bb
|
@ -318,7 +318,7 @@ class Char_cell_array_character_screen : public Terminal::Character_screen
|
|||
{
|
||||
Cursor_guard guard(*this);
|
||||
|
||||
_cursor_pos.x += dy;
|
||||
_cursor_pos.y -= dy;
|
||||
_cursor_pos.y = Genode::max(0, _cursor_pos.y);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue