Explicitly move cursor to top-left of screen, in case the clear screen
authorMichael Brown <mcb30@etherboot.org>
Tue, 19 Dec 2006 22:37:12 +0000 (22:37 +0000)
committerMichael Brown <mcb30@etherboot.org>
Tue, 19 Dec 2006 22:37:12 +0000 (22:37 +0000)
call doesn't do it.

src/hci/mucurses/ansi_screen.c

index 194439a..b230b2b 100644 (file)
@@ -9,7 +9,7 @@ static void ansiscr_init ( struct _curses_screen *scr ) {
        scr->attrs = 0;
        scr->curs_x = 0;
        scr->curs_y = 0;
-       printf ( "\033[0m\033[2J" );
+       printf ( "\033[0m\033[2J\033[1;1H" );
 }
 
 static void ansiscr_exit ( struct _curses_screen *scr __unused ) {