summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/curses.h13
1 files changed, 8 insertions, 5 deletions
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
@@ -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 );
}