Explicitly call erase(), to cope with platforms where the ANSI clear
authorMichael Brown <mcb30@etherboot.org>
Wed, 20 Dec 2006 06:12:04 +0000 (06:12 +0000)
committerMichael Brown <mcb30@etherboot.org>
Wed, 20 Dec 2006 06:12:04 +0000 (06:12 +0000)
screen sequence doesn't work (like bios_console.c on some platforms).

src/hci/mucurses/wininit.c

index 86ad0fa..dfd0ca0 100644 (file)
@@ -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;
 }