mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 21:41:43 +03:00
[mucurses] Use "<ESC>[2J" ANSI escape sequence to clear screen
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user