libpayload: Add a timeout function for getchar and getch
Implement a timeout option for getchar() to return after so many milliseconds. Also implement the same thing for curses using the halfdelay() function. Signed-off-by: Jordan Crouse <jordan.crouse@amd.com> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3223 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
committed by
Uwe Hermann
parent
4eb5089821
commit
672d0ae156
@ -318,7 +318,6 @@ WINDOW *newwin(int num_lines, int num_columns, int begy, int begx)
|
||||
return win;
|
||||
}
|
||||
/* D */ int nl(void) { SP->_nl = TRUE; return OK; }
|
||||
int nocbreak(void) { /* TODO */ return(*(int *)0); }
|
||||
/* D */ int noecho(void) { SP->_echo = FALSE; return OK; }
|
||||
/* D */ int nonl(void) { SP->_nl = FALSE; return OK; }
|
||||
// void noqiflush (void) {}
|
||||
|
Reference in New Issue
Block a user