aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-02-23 19:22:28 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-02-23 19:22:28 +0000
commitefb04d3ee2919463ca6c935e387b04ab768b3d94 (patch)
tree3a2b00093b0ea817e7f2e470f12021283b502ba7
parent0962ee4f85decab16bef85f467e79d163db9bbb3 (diff)
downloadtermo-efb04d3ee2919463ca6c935e387b04ab768b3d94.tar.gz
termo-efb04d3ee2919463ca6c935e387b04ab768b3d94.tar.xz
termo-efb04d3ee2919463ca6c935e387b04ab768b3d94.zip
Rearranged Home/End keys to better suit rxvt's naming, note 1/4 are now Find/Select
-rw-r--r--termkey.c6
-rw-r--r--termkey.h6
2 files changed, 8 insertions, 4 deletions
diff --git a/termkey.c b/termkey.c
index 2be6b8c..805f7af 100644
--- a/termkey.c
+++ b/termkey.c
@@ -153,12 +153,14 @@ termkey_t *termkey_new_full(int fd, int flags, size_t buffsize, int waittime)
termkey_register_ss3kpalt(tk, TERMKEY_SYM_KP8, 'x', "KP8", '8');
termkey_register_ss3kpalt(tk, TERMKEY_SYM_KP9, 'y', "KP9", '9');
- termkey_register_csifunc(tk, TERMKEY_SYM_HOME, 1, "Home");
+ termkey_register_csifunc(tk, TERMKEY_SYM_FIND, 1, "Find");
termkey_register_csifunc(tk, TERMKEY_SYM_INSERT, 2, "Insert");
termkey_register_csifunc(tk, TERMKEY_SYM_DELETE, 3, "Delete");
- termkey_register_csifunc(tk, TERMKEY_SYM_END, 4, "End");
+ termkey_register_csifunc(tk, TERMKEY_SYM_SELECT, 4, "Select");
termkey_register_csifunc(tk, TERMKEY_SYM_PAGEUP, 5, "PageUp");
termkey_register_csifunc(tk, TERMKEY_SYM_PAGEDOWN, 6, "PageDown");
+ termkey_register_csifunc(tk, TERMKEY_SYM_HOME, 7, "Home");
+ termkey_register_csifunc(tk, TERMKEY_SYM_END, 8, "End");
termkey_register_csifunc(tk, TERMKEY_SYM_F1, 11, "F1");
termkey_register_csifunc(tk, TERMKEY_SYM_F2, 12, "F2");
termkey_register_csifunc(tk, TERMKEY_SYM_F3, 13, "F3");
diff --git a/termkey.h b/termkey.h
index 629c79c..5479f2b 100644
--- a/termkey.h
+++ b/termkey.h
@@ -26,12 +26,14 @@ typedef enum {
TERMKEY_SYM_BEGIN,
// CSI function keys
+ TERMKEY_SYM_FIND,
TERMKEY_SYM_INSERT,
TERMKEY_SYM_DELETE,
- TERMKEY_SYM_HOME,
- TERMKEY_SYM_END,
+ TERMKEY_SYM_SELECT,
TERMKEY_SYM_PAGEUP,
TERMKEY_SYM_PAGEDOWN,
+ TERMKEY_SYM_HOME,
+ TERMKEY_SYM_END,
TERMKEY_SYM_F1,
TERMKEY_SYM_F2,