[console] Add a timeout parameter to getkey()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2011-03-07 19:33:50 +00:00
parent 2969a8567f
commit 9d633bdc71
7 changed files with 13 additions and 16 deletions

View File

@@ -98,7 +98,7 @@ char * readline ( const char *prompt ) {
buf[0] = '\0';
while ( 1 ) {
key = edit_string ( &string, getkey() );
key = edit_string ( &string, getkey ( 0 ) );
sync_console ( &string );
switch ( key ) {
case CR: