summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2015-10-06 04:51:16 -0300
committerdequis <dx@dxzone.com.ar>2015-10-06 06:15:47 -0300
commit58a166484ad7eab33c1ad72b64016e5aacebfaf5 (patch)
tree87dc240c9e295a2cd51285b3008a9db5f392137b /src/fe-text
parent48375c3f900f56434441caa0161c0531fd0ce435 (diff)
downloadirssi-58a166484ad7eab33c1ad72b64016e5aacebfaf5.zip
Add xterm's keypad enter, meta-O-M to "key return" bindings
From the 'kent' terminfo entry. Also applies to putty. Fixes #327
Diffstat (limited to 'src/fe-text')
-rw-r--r--src/fe-text/gui-readline.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c
index ec61e317..dc7185e7 100644
--- a/src/fe-text/gui-readline.c
+++ b/src/fe-text/gui-readline.c
@@ -1020,6 +1020,8 @@ void gui_readline_init(void)
key_bind("key", NULL, "meta2-5F", "cend", (SIGNAL_FUNC) key_combo);
key_bind("key", NULL, "meta2-1;5F", "cend", (SIGNAL_FUNC) key_combo);
+ key_bind("key", NULL, "meta-O-M", "return", (SIGNAL_FUNC) key_combo);
+
/* cursor movement */
key_bind("backward_character", "Move the cursor a character backward", "left", NULL, (SIGNAL_FUNC) key_backward_character);
key_bind("forward_character", "Move the cursor a character forward", "right", NULL, (SIGNAL_FUNC) key_forward_character);