All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] Abort cat command with ESC
Date: Sun, 17 Feb 2008 14:55:03 +0100	[thread overview]
Message-ID: <20080217135503.GD15576@thorin> (raw)
In-Reply-To: <47B4A696.4080109@t-online.de>


Committed.

On Thu, Feb 14, 2008 at 09:37:42PM +0100, Christian Franke wrote:
> A minor feature addition.
> 
> 2008-02-14  Christian Franke  <franke@computer.org>
> 
> 	* 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
> Grub-devel@gnu.org
> 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 /.)



      reply	other threads:[~2008-02-17 13:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-14 20:37 [PATCH] Abort cat command with ESC Christian Franke
2008-02-17 13:55 ` Robert Millan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080217135503.GD15576@thorin \
    --to=rmh@aybabtu.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.