[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Abort cat command with ESC
From: |
Robert Millan |
Subject: |
Re: [PATCH] Abort cat command with ESC |
Date: |
Sun, 17 Feb 2008 14:55:03 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Committed.
On Thu, Feb 14, 2008 at 09:37:42PM +0100, Christian Franke wrote:
> A minor feature addition.
>
> 2008-02-14 Christian Franke <address@hidden>
>
> * commands/cat.c (grub_cmd_cat): Add break on
> GRUB_TERM_ESC key.
>
>
> --- grub2.orig/commands/cat.c 2008-02-09 14:02:53.557039500 +0100
> +++ grub2/commands/cat.c 2008-02-12 22:56:57.125000000 +0100
> @@ -59,6 +59,12 @@ grub_cmd_cat (struct grub_arg_list *stat
> grub_setcolorstate (GRUB_TERM_COLOR_STANDARD);
> }
> }
> +
> + if (GRUB_TERM_ASCII_CHAR (grub_checkkey ()) == GRUB_TERM_ESC)
> + {
> + grub_getkey ();
> + break;
> + }
> }
>
> grub_putchar ('\n');
> _______________________________________________
> Grub-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/grub-devel
--
Robert Millan
<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)