[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

@@ -88,7 +88,7 @@ int login_ui ( void ) {
draw_editbox ( current_box );
key = getkey();
key = getkey ( 0 );
switch ( key ) {
case KEY_DOWN:
current_box = &password_box;

View File

@@ -401,7 +401,7 @@ static int main_loop ( struct settings *settings ) {
draw_setting ( &widget );
color_set ( CPAIR_NORMAL, NULL );
key = getkey();
key = getkey ( 0 );
if ( widget.editing ) {
key = edit_setting ( &widget, key );
switch ( key ) {