From 04275a632ebbb816ff0e56b5dc92800a722c3013 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 19 Nov 2001 23:57:29 +0000 Subject: [PATCH] Specified "cleft" and "cright" for ctrl-left/right keys. Added xterm's keycodes for them. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2111 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/gui-readline.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c index 35f814be..44092f38 100644 --- a/src/fe-text/gui-readline.c +++ b/src/fe-text/gui-readline.c @@ -574,11 +574,16 @@ void gui_readline_init(void) key_bind("key", NULL, "meta2-2~", "insert", (SIGNAL_FUNC) key_combo); key_bind("key", NULL, "meta2-3~", "delete", (SIGNAL_FUNC) key_combo); - /* cursor movement */ + key_bind("key", NULL, "meta2-d", "cleft", (SIGNAL_FUNC) key_combo); + key_bind("key", NULL, "meta2-c", "cright", (SIGNAL_FUNC) key_combo); + key_bind("key", NULL, "meta2-5D", "cleft", (SIGNAL_FUNC) key_combo); + key_bind("key", NULL, "meta2-5C", "cright", (SIGNAL_FUNC) key_combo); + + /* cursor movement */ key_bind("backward_character", "", "left", NULL, (SIGNAL_FUNC) key_backward_character); key_bind("forward_character", "", "right", NULL, (SIGNAL_FUNC) key_forward_character); - key_bind("backward_word", "", "meta2-d", NULL, (SIGNAL_FUNC) key_backward_word); - key_bind("forward_word", "", "meta2-c", NULL, (SIGNAL_FUNC) key_forward_word); + key_bind("backward_word", "", "cleft", NULL, (SIGNAL_FUNC) key_backward_word); + key_bind("forward_word", "", "cright", NULL, (SIGNAL_FUNC) key_forward_word); key_bind("backward_to_space", "", NULL, NULL, (SIGNAL_FUNC) key_backward_to_space); key_bind("forward_to_space", "", NULL, NULL, (SIGNAL_FUNC) key_forward_to_space); key_bind("beginning_of_line", "", "home", NULL, (SIGNAL_FUNC) key_beginning_of_line);