From 7271b5089073d84d74709d3986e1bb32234f1c4d Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 28 Nov 2013 05:01:29 +0000 Subject: [mucurses] Use "[2J" ANSI escape sequence to clear screen Signed-off-by: Michael Brown --- src/include/curses.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/include') diff --git a/src/include/curses.h b/src/include/curses.h index 206977904..1230e0af3 100644 --- a/src/include/curses.h +++ b/src/include/curses.h @@ -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 ); } -- cgit v1.2.3-55-g7522