os: fix 'CUU' terminal command

Decrement the y position to move the cursor up.

Fixes #3379
This commit is contained in:
Christian Prochaska 2019-05-25 19:22:22 +02:00 committed by Christian Helmuth
parent d417d26ce8
commit f99a1d78bb
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}