aboutsummaryrefslogtreecommitdiffstats
path: root/com32/elflink/ldlinux/cli.c
diff options
context:
space:
mode:
authorLiu Aleaxander <Aleaxander@gmail.com>2011-03-15 20:29:33 +0000
committerMatt Fleming <matt.fleming@linux.intel.com>2011-03-15 21:15:03 +0000
commit125fe2b406ef56c472947be5b731fa9adaf303da (patch)
tree43ad4a8c0aa5761b91211c23ad891522cb21fecb /com32/elflink/ldlinux/cli.c
parent21859f75289aa2f28c8c6ddfbfea481bac631ecd (diff)
downloadsyslinux-125fe2b406ef56c472947be5b731fa9adaf303da.tar.gz
syslinux-125fe2b406ef56c472947be5b731fa9adaf303da.tar.xz
syslinux-125fe2b406ef56c472947be5b731fa9adaf303da.zip
elflink: Add Ctrl-p + Ctrl-n key binds
Add ctrl-p and ctrl-n key binds to get the prev and next command. They are much easier to reach than KEY_UP and KEY_DOWN. Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com> Signed-off-by: Matt Fleming <matt.fleming@linux.intel.com>
Diffstat (limited to 'com32/elflink/ldlinux/cli.c')
-rw-r--r--com32/elflink/ldlinux/cli.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/com32/elflink/ldlinux/cli.c b/com32/elflink/ldlinux/cli.c
index 7a68545e..130dc6de 100644
--- a/com32/elflink/ldlinux/cli.c
+++ b/com32/elflink/ldlinux/cli.c
@@ -285,6 +285,7 @@ const char *edit_cmdline(const char *input, int top /*, int width */ ,
redraw = 1;
}
break;
+ case KEY_CTRL('P'):
case KEY_UP:
{
if (!list_empty(&cli_history_head)) {
@@ -301,6 +302,7 @@ const char *edit_cmdline(const char *input, int top /*, int width */ ,
}
}
break;
+ case KEY_CTRL('N'):
case KEY_DOWN:
{
if (!list_empty(&cli_history_head)) {