Sfoglia il codice sorgente

Explicitly move cursor to top-left of screen, in case the clear screen

call doesn't do it.
tags/v0.9.3
Michael Brown 18 anni fa
parent
commit
abbfbd678d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      src/hci/mucurses/ansi_screen.c

+ 1
- 1
src/hci/mucurses/ansi_screen.c Vedi File

@@ -9,7 +9,7 @@ static void ansiscr_init ( struct _curses_screen *scr ) {
9 9
 	scr->attrs = 0;
10 10
 	scr->curs_x = 0;
11 11
 	scr->curs_y = 0;
12
-	printf ( "\033[0m\033[2J" );
12
+	printf ( "\033[0m\033[2J\033[1;1H" );
13 13
 }
14 14
 
15 15
 static void ansiscr_exit ( struct _curses_screen *scr __unused ) {

Loading…
Annulla
Salva