about summary refs log tree commit diff homepage
path: root/client.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-04-09 01:00:54 -0400
committerJune McEnroe <june@causal.agency>2018-04-09 01:00:54 -0400
commit99e3c574a02fdb779e97186119891fbe46390d72 (patch)
tree639e659dd91b6e9259f55f59ca91d6bf9ae46e12 /client.c
parentLink against ncurses (diff)
downloadtorus-99e3c574a02fdb779e97186119891fbe46390d72.tar.gz
torus-99e3c574a02fdb779e97186119891fbe46390d72.zip
Replace #define with enum or const where possible
Diffstat (limited to 'client.c')
-rw-r--r--client.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/client.c b/client.c
index 6ad60d7..ef51ae0 100644
--- a/client.c
+++ b/client.c
@@ -29,8 +29,10 @@
 
 #include "torus.h"
 
-#define ESC (0x1B)
-#define DEL (0x7F)
+enum {
+    ESC = 0x1B,
+    DEL = 0x7F,
+};
 
 #define CH_COLOR(ch) (ch & A_BOLD ? COLOR_BRIGHT | ch >> 8 & 0xFF : ch >> 8 & 0xFF)