summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3766055)
raw | patch | inline | side by side (parent: 3766055)
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Sat, 27 Aug 2011 01:16:49 +0000 (03:16 +0200) | ||
committer | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Mon, 29 Aug 2011 20:41:56 +0000 (22:41 +0200) |
I copied it from tig[1], which is licensed under the GPLv2+, so we
may use the code.
[1] http://jonas.nitro.dk/tig/
may use the code.
[1] http://jonas.nitro.dk/tig/
src/command.c | patch | blob | history |
diff --git a/src/command.c b/src/command.c
index 0bb45bfbfc5acfcc5a18e7055d6e147c99494d9b..9ce7b0e6f1fb172c755ec41bae82aeb3c1f8845b 100644 (file)
--- a/src/command.c
+++ b/src/command.c
#define DK(x)
#endif
+#define KEY_CTL(x) ((x) & 0x1f) /* KEY_CTL(A) == ^A == \1 */
+
#define BS KEY_BACKSPACE
#define DEL KEY_DC
#define UP KEY_UP