Replace grub_checkkey with grub_getkey_noblock.
* grub-core/kern/term.c (grub_checkkey): Replaced with ... (grub_getkey_noblock): ... this. All users updated.
This commit is contained in:
parent
b500bcfeed
commit
a8f16eab1a
7 changed files with 28 additions and 36 deletions
|
@ -41,7 +41,7 @@ grub_cmd_cat (grub_extcmd_context_t ctxt, int argc, char **args)
|
|||
grub_file_t file;
|
||||
char buf[GRUB_DISK_SECTOR_SIZE];
|
||||
grub_ssize_t size;
|
||||
int key = 0;
|
||||
int key = GRUB_TERM_NO_KEY;
|
||||
|
||||
if (state[0].set)
|
||||
dos = 1;
|
||||
|
@ -77,8 +77,7 @@ grub_cmd_cat (grub_extcmd_context_t ctxt, int argc, char **args)
|
|||
}
|
||||
}
|
||||
|
||||
while (grub_checkkey () >= 0 &&
|
||||
(key = grub_getkey ()) != GRUB_TERM_ESC)
|
||||
while ((key = grub_getkey_noblock ()) != GRUB_TERM_ESC)
|
||||
;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue