[syslinux:elflink] elflink: Add Ctrl-p + Ctrl-n key binds

syslinux-bot for Liu Aleaxander Aleaxander at gmail.com
Fri Mar 18 11:30:42 PDT 2011


Commit-ID:  125fe2b406ef56c472947be5b731fa9adaf303da
Gitweb:     http://syslinux.zytor.com/commit/125fe2b406ef56c472947be5b731fa9adaf303da
Author:     Liu Aleaxander <Aleaxander at gmail.com>
AuthorDate: Tue, 15 Mar 2011 20:29:33 +0000
Committer:  Matt Fleming <matt.fleming at linux.intel.com>
CommitDate: Tue, 15 Mar 2011 21:15:03 +0000

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 at gmail.com>
Signed-off-by: Matt Fleming <matt.fleming at linux.intel.com>


---
 com32/elflink/ldlinux/cli.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/com32/elflink/ldlinux/cli.c b/com32/elflink/ldlinux/cli.c
index 7a68545..130dc6d 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)) {



More information about the Syslinux-commits mailing list