diff options
author | Jilles Tjoelker <jilles@irssi.org> | 2007-08-24 17:13:21 +0000 |
---|---|---|
committer | jilles <jilles@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2007-08-24 17:13:21 +0000 |
commit | c5b4e72382b01522907b2b6ac4e4cab7494cc3b3 (patch) | |
tree | 74bcbec0802fdb96a5c61207c7272ee651934faf /src/fe-text/gui-readline.c | |
parent | a5e96939b22addbe88a34e807fd8424bacba03d3 (diff) | |
download | irssi-c5b4e72382b01522907b2b6ac4e4cab7494cc3b3.zip |
Make alt/meta+arrow keys work in recent versions of xterm.
Bug #496
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4603 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/gui-readline.c')
-rw-r--r-- | src/fe-text/gui-readline.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c index 78ebd351..d7129c98 100644 --- a/src/fe-text/gui-readline.c +++ b/src/fe-text/gui-readline.c @@ -1087,6 +1087,15 @@ void gui_readline_init(void) key_bind("key", NULL, "meta2-1;5D", "cleft", (SIGNAL_FUNC) key_combo); key_bind("key", NULL, "meta2-1;5C", "cright", (SIGNAL_FUNC) key_combo); + key_bind("key", NULL, "meta2-1;3A", "mup", (SIGNAL_FUNC) key_combo); + key_bind("key", NULL, "meta2-1;3B", "mdown", (SIGNAL_FUNC) key_combo); + key_bind("key", NULL, "meta2-1;3D", "mleft", (SIGNAL_FUNC) key_combo); + key_bind("key", NULL, "meta2-1;3C", "mright", (SIGNAL_FUNC) key_combo); + key_bind("key", NULL, "meta-up", "mup", (SIGNAL_FUNC) key_combo); + key_bind("key", NULL, "meta-down", "mdown", (SIGNAL_FUNC) key_combo); + key_bind("key", NULL, "meta-left", "mleft", (SIGNAL_FUNC) key_combo); + key_bind("key", NULL, "meta-right", "mright", (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); @@ -1132,10 +1141,10 @@ void gui_readline_init(void) /* window managing */ key_bind("previous_window", "Previous window", "^P", NULL, (SIGNAL_FUNC) key_previous_window); key_bind("next_window", "Next window", "^N", NULL, (SIGNAL_FUNC) key_next_window); - key_bind("upper_window", "Upper window", "meta-up", NULL, (SIGNAL_FUNC) key_upper_window); - key_bind("lower_window", "Lower window", "meta-down", NULL, (SIGNAL_FUNC) key_lower_window); - key_bind("left_window", "Window in left", "meta-left", NULL, (SIGNAL_FUNC) key_left_window); - key_bind("right_window", "Window in right", "meta-right", NULL, (SIGNAL_FUNC) key_right_window); + key_bind("upper_window", "Upper window", "mup", NULL, (SIGNAL_FUNC) key_upper_window); + key_bind("lower_window", "Lower window", "mdown", NULL, (SIGNAL_FUNC) key_lower_window); + key_bind("left_window", "Window in left", "mleft", NULL, (SIGNAL_FUNC) key_left_window); + key_bind("right_window", "Window in right", "mright", NULL, (SIGNAL_FUNC) key_right_window); key_bind("active_window", "Go to next window with the highest activity", "meta-a", NULL, (SIGNAL_FUNC) key_active_window); key_bind("next_window_item", "Next channel/query", "^X", NULL, (SIGNAL_FUNC) key_next_window_item); key_bind("previous_window_item", "Previous channel/query", NULL, NULL, (SIGNAL_FUNC) key_previous_window_item); |