From 9ab17484d0b6c8b849990e669f4836eae1680e67 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 20 Dec 2006 06:12:04 +0000 Subject: [PATCH] Explicitly call erase(), to cope with platforms where the ANSI clear screen sequence doesn't work (like bios_console.c on some platforms). --- src/hci/mucurses/wininit.c | 5 +++++ 1 file changed, 5 insertions(+) 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 #include /** @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; }