2008-02-17 Christian Franke <franke@computer.org>

* commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
This commit is contained in:
robertmh 2008-02-17 13:52:18 +00:00
parent 32b0fc496b
commit b7202015a7
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2008-02-17 Christian Franke <franke@computer.org>
* commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
2008-02-17 Robert Millan <rmh@aybabtu.com> 2008-02-17 Robert Millan <rmh@aybabtu.com>
* util/i386/pc/grub-setup.c (setup): In find_first_partition_start(), * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),

View file

@ -59,6 +59,12 @@ grub_cmd_cat (struct grub_arg_list *state __attribute__ ((unused)),
grub_setcolorstate (GRUB_TERM_COLOR_STANDARD); grub_setcolorstate (GRUB_TERM_COLOR_STANDARD);
} }
} }
if (GRUB_TERM_ASCII_CHAR (grub_checkkey ()) == GRUB_TERM_ESC)
{
grub_getkey ();
break;
}
} }
grub_putchar ('\n'); grub_putchar ('\n');