2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-12-13 23:01:31 +00:00

Explicitly call erase(), to cope with platforms where the ANSI clear

screen sequence doesn't work (like bios_console.c on some platforms).
This commit is contained in:
Michael Brown 2006-12-20 06:12:04 +00:00
parent f8910410fe
commit 9ab17484d0

View 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;
}