diff options
author | Michael Brown | 2013-11-28 06:01:29 +0100 |
---|---|---|
committer | Michael Brown | 2013-11-28 06:03:05 +0100 |
commit | 7271b5089073d84d74709d3986e1bb32234f1c4d (patch) | |
tree | 7cdef75cc1c16c386eceee27c06f39da1cb45f08 /src/include/curses.h | |
parent | [pnm] Add support for PNM images (diff) | |
download | ipxe-7271b5089073d84d74709d3986e1bb32234f1c4d.tar.gz ipxe-7271b5089073d84d74709d3986e1bb32234f1c4d.tar.xz ipxe-7271b5089073d84d74709d3986e1bb32234f1c4d.zip |
[mucurses] Use "<ESC>[2J" ANSI escape sequence to clear screen
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/curses.h')
-rw-r--r-- | src/include/curses.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/include/curses.h b/src/include/curses.h index 20697790..1230e0af 100644 --- a/src/include/curses.h +++ b/src/include/curses.h @@ -38,6 +38,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 * * @v scr screen on which to operate @@ -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 ); } |