[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Abort cat command with ESC
From: |
Christian Franke |
Subject: |
[PATCH] Abort cat command with ESC |
Date: |
Thu, 14 Feb 2008 21:37:42 +0100 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071128 SeaMonkey/1.1.7 |
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');
- [PATCH] Abort cat command with ESC,
Christian Franke <=