mirror of
https://github.com/ipxe/ipxe
synced 2026-01-02 09:52:49 +03:00
[console] Add a timeout parameter to getkey()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -47,7 +47,7 @@ int shell_banner ( void ) {
|
||||
printf ( "\nPress Ctrl-B for the iPXE command line..." );
|
||||
|
||||
/* Wait for key */
|
||||
key = getchar_timeout ( ( BANNER_TIMEOUT * TICKS_PER_SEC ) / 10 );
|
||||
key = getkey ( ( BANNER_TIMEOUT * TICKS_PER_SEC ) / 10 );
|
||||
|
||||
/* Clear the "Press Ctrl-B" line */
|
||||
printf ( "\r \r" );
|
||||
|
||||
Reference in New Issue
Block a user