summaryrefslogtreecommitdiffstats
path: root/src/hci/mucurses
diff options
context:
space:
mode:
authorMichael Brown2006-12-19 01:33:36 +0100
committerMichael Brown2006-12-19 01:33:36 +0100
commite7cc1c6c35ede9f124e6d4d249a25b0115ad510d (patch)
treee5e10e1aeb7f50cb1b605694be40e78ec8e52dc4 /src/hci/mucurses
parentNow basically functioning on ANSI-supporting consoles. (diff)
downloadipxe-e7cc1c6c35ede9f124e6d4d249a25b0115ad510d.tar.gz
ipxe-e7cc1c6c35ede9f124e6d4d249a25b0115ad510d.tar.xz
ipxe-e7cc1c6c35ede9f124e6d4d249a25b0115ad510d.zip
Use ANSI escape sequence to reset and clear terminal, rather than using
the (slow) werase().
Diffstat (limited to 'src/hci/mucurses')
-rw-r--r--src/hci/mucurses/ansi_screen.c2
-rw-r--r--src/hci/mucurses/wininit.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/hci/mucurses/ansi_screen.c b/src/hci/mucurses/ansi_screen.c
index c078d60d9..01fbb8b96 100644
--- a/src/hci/mucurses/ansi_screen.c
+++ b/src/hci/mucurses/ansi_screen.c
@@ -5,6 +5,8 @@ unsigned short _COLS = 80;
unsigned short _LINES = 25;
static void ansiscr_init ( struct _curses_screen *scr __unused ) {
+ /* Reset terminal attributes and clear screen */
+ printf ( "\033[0m\033[2J" );
}
static void ansiscr_exit ( struct _curses_screen *scr __unused ) {
diff --git a/src/hci/mucurses/wininit.c b/src/hci/mucurses/wininit.c
index bfda09c07..86ad0faa9 100644
--- a/src/hci/mucurses/wininit.c
+++ b/src/hci/mucurses/wininit.c
@@ -17,8 +17,6 @@ WINDOW *initscr ( void ) {
stdscr->scr->init( stdscr->scr );
stdscr->height = LINES;
stdscr->width = COLS;
- werase( stdscr );
-
return stdscr;
}