about summary refs log tree commit diff stats
path: root/src/ui/inputwin.h
diff options
context:
space:
mode:
authorAndrew Ho <andrew@zeuscat.com>2014-12-30 22:36:54 -0800
committerAndrew Ho <andrew@zeuscat.com>2014-12-30 22:36:54 -0800
commit7fac4bcc14d6b9a21c28fbda11401c43ecfdf3c5 (patch)
treefe6a6ae811c385b4e6db148f232637c6e109aea7 /src/ui/inputwin.h
parente7ddff61dcb0831d8f8ca469844c0de0306f8994 (diff)
downloadprofani-tty-7fac4bcc14d6b9a21c28fbda11401c43ecfdf3c5.tar.gz
Add readline-style keybindings
Diffstat (limited to 'src/ui/inputwin.h')
-rw-r--r--src/ui/inputwin.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ui/inputwin.h b/src/ui/inputwin.h
index eae20a51..971c1088 100644
--- a/src/ui/inputwin.h
+++ b/src/ui/inputwin.h
@@ -35,6 +35,16 @@
 #ifndef UI_INPUTWIN_H
 #define UI_INPUTWIN_H
 
+#define KEY_CTRL_A 0001
+#define KEY_CTRL_B 0002
+#define KEY_CTRL_D 0004
+#define KEY_CTRL_E 0005
+#define KEY_CTRL_F 0006
+#define KEY_CTRL_N 0016
+#define KEY_CTRL_P 0020
+#define KEY_CTRL_U 0025
+#define KEY_CTRL_W 0027
+
 void create_input_window(void);
 wint_t inp_get_char(char *input, int *size, int *result);
 void inp_win_reset(void);