about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-01-31 22:08:00 +0000
committerJames Booth <boothj5@gmail.com>2015-01-31 22:08:00 +0000
commitbaa122e7dcd2cf9a996868e9f51f187a9b626f47 (patch)
tree4878ba1e1cd9fd1015da3561c5dd02dd189fe2d4 /src
parent28dd5458777a7655a558c14e17d79464c8ab4324 (diff)
downloadprofani-tty-baa122e7dcd2cf9a996868e9f51f187a9b626f47.tar.gz
Added function key bindings
Diffstat (limited to 'src')
-rw-r--r--src/ui/inputwin.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ui/inputwin.c b/src/ui/inputwin.c
index c6d15dce..2737101b 100644
--- a/src/ui/inputwin.c
+++ b/src/ui/inputwin.c
@@ -246,6 +246,17 @@ startup_hook(void)
     rl_bind_keyseq("\\e9", alt9_handler);
     rl_bind_keyseq("\\e0", alt0_handler);
 
+    rl_bind_keyseq("\\eOP", alt1_handler);
+    rl_bind_keyseq("\\eOQ", alt2_handler);
+    rl_bind_keyseq("\\eOR", alt3_handler);
+    rl_bind_keyseq("\\eOS", alt4_handler);
+    rl_bind_keyseq("\\e[15~", alt5_handler);
+    rl_bind_keyseq("\\e[17~", alt6_handler);
+    rl_bind_keyseq("\\e[18~", alt7_handler);
+    rl_bind_keyseq("\\e[19~", alt8_handler);
+    rl_bind_keyseq("\\e[20~", alt9_handler);
+    rl_bind_keyseq("\\e[21~", alt0_handler);
+
     rl_bind_keyseq("\\e[1;3D", altleft_handler);
     rl_bind_keyseq("\\e[1;3C", altright_handler);