[mucurses] Use "<ESC>[2J" ANSI escape sequence to clear screen

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2013-11-28 05:01:29 +00:00
parent 0ee89338dd
commit 7271b50890
3 changed files with 40 additions and 16 deletions

View File

@@ -37,6 +37,13 @@ typedef struct _curses_screen {
void ( *init ) ( struct _curses_screen *scr );
void ( *exit ) ( struct _curses_screen *scr );
/**
* Erase screen
*
* @v scr screen on which to operate
* @v attrs attributes
*/
void ( * erase ) ( struct _curses_screen *scr, attr_t attrs );
/**
* Move cursor to position specified by x,y coords
*
@@ -242,7 +249,7 @@ extern int echo ( void );
extern int echochar ( const chtype );
extern int endwin ( void );
extern char erasechar ( void );
//extern int erase ( void );
extern int erase ( void );
extern void filter ( void );
extern int flash ( void );
extern int flushinp ( void );
@@ -552,10 +559,6 @@ static inline int deleteln ( void ) {
return wdeleteln( stdscr );
}
static inline int erase ( void ) {
return werase ( stdscr );
}
static inline int getch ( void ) {
return wgetch ( stdscr );
}