summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2008-05-28 16:38:10 -0400
committerRay Strode <rstrode@redhat.com>2008-05-28 16:38:10 -0400
commit17f552c8ace0459e076864222126ec80e7547b6a (patch)
tree9564049bedb293577e0f322c6ebf9c01cee802dd /src
parentd469d3fd75189c709748a40765eee8bca12aa91c (diff)
Use more descriptive format for control code #defines
The previous format was just the ascii value directly in octal. I'm getting sick of typing 'man ascii' to look it up though. The new format is just, e.g., ('\100' ^ 'U') which not only means I can add new entries without looking them up, but also has the added advantage that it looks sort of similiar to, e.g., ^U, which is a common notation for respresenting control characters.
Diffstat (limited to 'src')
-rw-r--r--src/ply-window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ply-window.c b/src/ply-window.c
index b1f5944..e29ae86 100644
--- a/src/ply-window.c
+++ b/src/ply-window.c
@@ -43,9 +43,9 @@
#include "ply-logger.h"
#include "ply-utils.h"
-#define KEY_CTRL_T '\024'
-#define KEY_CTRL_V '\026'
-#define KEY_ESCAPE '\033'
+#define KEY_CTRL_T ('\100' ^'T')
+#define KEY_CTRL_V ('\100' ^'V')
+#define KEY_ESCAPE ('\100' ^'[')
#define KEY_RETURN '\r'
#define KEY_BACKSPACE '\177'