mirror of
https://github.com/ipxe/ipxe
synced 2025-12-29 02:52:36 +03:00
[console] Add a timeout parameter to getkey()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user