From f99a1d78bbdafae8902ada208df6bfd36b50a54f Mon Sep 17 00:00:00 2001 From: Christian Prochaska Date: Sat, 25 May 2019 19:22:22 +0200 Subject: [PATCH] os: fix 'CUU' terminal command Decrement the y position to move the cursor up. Fixes #3379 --- repos/os/include/terminal/char_cell_array_character_screen.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/os/include/terminal/char_cell_array_character_screen.h b/repos/os/include/terminal/char_cell_array_character_screen.h index 53b589764f..d6c218b231 100644 --- a/repos/os/include/terminal/char_cell_array_character_screen.h +++ b/repos/os/include/terminal/char_cell_array_character_screen.h @@ -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); }