summaryrefslogtreecommitdiffstats
path: root/src/hci/mucurses
diff options
context:
space:
mode:
authorMichael Brown2006-12-20 07:12:04 +0100
committerMichael Brown2006-12-20 07:12:04 +0100
commit9ab17484d0b6c8b849990e669f4836eae1680e67 (patch)
tree6c3b688a9f5bfa6681be55e4025965d4e97d3562 /src/hci/mucurses
parentAdd attr_{get,set,on,off} as static inlines. (diff)
downloadipxe-9ab17484d0b6c8b849990e669f4836eae1680e67.tar.gz
ipxe-9ab17484d0b6c8b849990e669f4836eae1680e67.tar.xz
ipxe-9ab17484d0b6c8b849990e669f4836eae1680e67.zip
Explicitly call erase(), to cope with platforms where the ANSI clear
screen sequence doesn't work (like bios_console.c on some platforms).
Diffstat (limited to 'src/hci/mucurses')
-rw-r--r--src/hci/mucurses/wininit.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/hci/mucurses/wininit.c b/src/hci/mucurses/wininit.c
index 86ad0faa..dfd0ca0a 100644
--- a/src/hci/mucurses/wininit.c
+++ b/src/hci/mucurses/wininit.c
@@ -1,3 +1,4 @@
+#include <stddef.h>
#include <curses.h>
/** @file
@@ -17,6 +18,7 @@ WINDOW *initscr ( void ) {
stdscr->scr->init( stdscr->scr );
stdscr->height = LINES;
stdscr->width = COLS;
+ erase();
return stdscr;
}
@@ -25,6 +27,9 @@ WINDOW *initscr ( void ) {
*
*/
int endwin ( void ) {
+ attrset ( 0 );
+ color_set ( 0, NULL );
+ erase();
stdscr->scr->exit( stdscr->scr );
return OK;
}