- Properly set LINES and COLS, needed for a real curses application.
- Implement notimeout() and wtimeout(), which are trivial.
- Implement a dummy flushinp() for now as it's needed by a curses
application I'm porting, will be replaced by something useful later.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3224
2b7e53f0-3cfb-0310-b3e9-
8179ed1497e1
WINDOW *stdscr;
WINDOW *curscr;
WINDOW *newscr;
WINDOW *stdscr;
WINDOW *curscr;
WINDOW *newscr;
+int LINES = 25;
+int COLS = 80;
int TABSIZE;
int ESCDELAY;
// char ttytype[];
int TABSIZE;
int ESCDELAY;
// char ttytype[];
// char erasechar (void) {}
// void filter (void) {}
// int flash(void) {}
// char erasechar (void) {}
// void filter (void) {}
// int flash(void) {}
-// int flushinp (void) {}
+int flushinp(void) { /* TODO */ return 0; }
// WINDOW *getwin (FILE *) {}
bool has_colors (void) { /* TODO */ return(*(bool *)0); }
// bool has_ic (void) {}
// WINDOW *getwin (FILE *) {}
bool has_colors (void) { /* TODO */ return(*(bool *)0); }
// bool has_ic (void) {}
/* D */ int nonl(void) { SP->_nl = FALSE; return OK; }
// void noqiflush (void) {}
// int noraw (void) {}
/* D */ int nonl(void) { SP->_nl = FALSE; return OK; }
// void noqiflush (void) {}
// int noraw (void) {}
-// int notimeout (WINDOW *,bool) {}
+/* D */ int notimeout (WINDOW *win, bool f) { win->_notimeout = f; return OK; }
// int overlay (const WINDOW*,WINDOW *) {}
// int overwrite (const WINDOW*,WINDOW *) {}
// int pair_content (short,short*,short*) {}
// int overlay (const WINDOW*,WINDOW *) {}
// int overwrite (const WINDOW*,WINDOW *) {}
// int pair_content (short,short*,short*) {}
}
// void wsyncdown (WINDOW *) {}
// void wsyncup (WINDOW *) {}
}
// void wsyncdown (WINDOW *) {}
// void wsyncup (WINDOW *) {}
-// void wtimeout (WINDOW *,int) {}
+/* D */ void wtimeout(WINDOW *win, int delay) { win->_delay = delay; }
/* D */ int wtouchln(WINDOW *win, int y, int n, int changed)
{
int i;
/* D */ int wtouchln(WINDOW *win, int y, int n, int changed)
{
int i;