All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Franke <Christian.Franke@t-online.de>
To: grub-devel@gnu.org
Subject: [PATCH] Abort cat command with ESC
Date: Thu, 14 Feb 2008 21:37:42 +0100	[thread overview]
Message-ID: <47B4A696.4080109@t-online.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 149 bytes --]

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.



[-- Attachment #2: grub2-cat-abort.patch --]
[-- Type: text/x-patch, Size: 397 bytes --]

--- 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');

             reply	other threads:[~2008-02-14 20:38 UTC|newest]

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

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=47B4A696.4080109@t-online.de \
    --to=christian.franke@t-online.de \
    --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.