From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JQk1P-0008Sq-FF for mharc-grub-devel@gnu.org; Sun, 17 Feb 2008 08:57:35 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JQk1N-0008R6-BH for grub-devel@gnu.org; Sun, 17 Feb 2008 08:57:33 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JQk1K-0008O1-VT for grub-devel@gnu.org; Sun, 17 Feb 2008 08:57:32 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQk1J-0008Nn-VW for grub-devel@gnu.org; Sun, 17 Feb 2008 08:57:30 -0500 Received: from aybabtu.com ([69.60.117.155]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JQk1J-0000bT-7n for grub-devel@gnu.org; Sun, 17 Feb 2008 08:57:29 -0500 Received: from [192.168.10.6] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1JQk13-00032k-MX for grub-devel@gnu.org; Sun, 17 Feb 2008 14:57:14 +0100 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1JQjyx-0004J7-7Z for grub-devel@gnu.org; Sun, 17 Feb 2008 14:55:03 +0100 Date: Sun, 17 Feb 2008 14:55:03 +0100 From: Robert Millan To: The development of GRUB 2 Message-ID: <20080217135503.GD15576@thorin> References: <47B4A696.4080109@t-online.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <47B4A696.4080109@t-online.de> Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: [PATCH] Abort cat command with ESC X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Feb 2008 13:57:33 -0000 Committed. On Thu, Feb 14, 2008 at 09:37:42PM +0100, Christian Franke wrote: > A minor feature addition. > > 2008-02-14 Christian Franke > > * 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 I know my rights; I want my phone call! What use is a phone call… if you are unable to speak? (as seen on /.)