瀏覽代碼

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 年之前
父節點
當前提交
abbfbd678d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/hci/mucurses/ansi_screen.c

+ 1
- 1
src/hci/mucurses/ansi_screen.c 查看文件

@@ -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…
取消
儲存