From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JPkqt-0002we-E8 for mharc-grub-devel@gnu.org; Thu, 14 Feb 2008 15:38:39 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JPkqs-0002vY-Bh for grub-devel@gnu.org; Thu, 14 Feb 2008 15:38:38 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JPkqp-0002uU-NR for grub-devel@gnu.org; Thu, 14 Feb 2008 15:38:37 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JPkqp-0002uQ-Fc for grub-devel@gnu.org; Thu, 14 Feb 2008 15:38:35 -0500 Received: from mailout01.sul.t-online.de ([194.25.134.80] helo=mailout01.sul.t-online.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JPkqo-0003yo-Ry for grub-devel@gnu.org; Thu, 14 Feb 2008 15:38:35 -0500 Received: from fwd34.aul.t-online.de by mailout01.sul.t-online.com with smtp id 1JPkql-00051V-01; Thu, 14 Feb 2008 21:38:31 +0100 Received: from [10.3.2.2] (Zq0e7sZdrh7G4n2GQHbEbC3jfb+L7gXCdRLb8ajpYoD+9n4tPJJwV-RnaytFKpBZtq@[217.235.197.144]) by fwd34.aul.t-online.de with esmtp id 1JPkpw-0RFUUC0; Thu, 14 Feb 2008 21:37:40 +0100 Message-ID: <47B4A696.4080109@t-online.de> Date: Thu, 14 Feb 2008 21:37:42 +0100 From: Christian Franke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071128 SeaMonkey/1.1.7 MIME-Version: 1.0 To: grub-devel@gnu.org Content-Type: multipart/mixed; boundary="------------000207040003080901050900" X-ID: Zq0e7sZdrh7G4n2GQHbEbC3jfb+L7gXCdRLb8ajpYoD+9n4tPJJwV-RnaytFKpBZtq X-TOI-MSGID: 088aa3f2-4dc5-461d-a2c4-7b57dfec8cb8 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Subject: [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: Thu, 14 Feb 2008 20:38:38 -0000 This is a multi-part message in MIME format. --------------000207040003080901050900 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit A minor feature addition. 2008-02-14 Christian Franke * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key. --------------000207040003080901050900 Content-Type: text/x-patch; name="grub2-cat-abort.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="grub2-cat-abort.patch" --- 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'); --------------000207040003080901050900--