iPXE
|
Prompt for keypress. More...
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
int | prompt (const char *text, unsigned long timeout, int key) |
Prompt for keypress. More... | |
Prompt for keypress.
Definition in file prompt.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
int prompt | ( | const char * | text, |
unsigned long | timeout, | ||
int | key | ||
) |
Prompt for keypress.
text | Prompt string |
timeout | Timeout period, in ticks (0=indefinite) |
key | Key to wait for (0=any key) |
rc | Return status code |
Returns success if the specified key was pressed within the specified timeout period.
Definition at line 48 of file prompt.c.
References ECANCELED, ETIMEDOUT, getkey(), key, printf(), and timeout().
Referenced by prompt_exec(), readline(), readline_history(), and shell_banner().