1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-27 05:20:20 -04:00

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
This commit is contained in:
Timo Sirainen 2001-11-19 23:57:29 +00:00 committed by cras
parent 0fc752528f
commit 04275a632e

View File

@ -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);