summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-21 19:18:44 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-21 19:18:44 +0800
commitc431922490f08beb011af18f9ffb72a74b5d3a1c (patch)
treebf928a74c788a892dfc88965b0d866a33eb895a9 /include
parent08bea601fe829e23a80cd66a3809e49590a43e2f (diff)
downloadpttbbs-c431922490f08beb011af18f9ffb72a74b5d3a1c.tar
pttbbs-c431922490f08beb011af18f9ffb72a74b5d3a1c.tar.gz
pttbbs-c431922490f08beb011af18f9ffb72a74b5d3a1c.tar.bz2
pttbbs-c431922490f08beb011af18f9ffb72a74b5d3a1c.tar.lz
pttbbs-c431922490f08beb011af18f9ffb72a74b5d3a1c.tar.xz
pttbbs-c431922490f08beb011af18f9ffb72a74b5d3a1c.tar.zst
pttbbs-c431922490f08beb011af18f9ffb72a74b5d3a1c.zip
- refine key processing of CR(C-M), LF(C-J), BS(C-H), BS2(0x7f)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4223 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index cf390eee..fe6c428e 100644
--- a/include/common.h
+++ b/include/common.h
@@ -136,6 +136,9 @@
/* Áä½L³]©w */
#define KEY_TAB 9
#define KEY_ESC 27
+#define KEY_CR ('\r') // Ctrl('M'), 0x0D
+#define KEY_LF ('\n') // Ctrl('J'), 0x0A
+#define KEY_ENTER KEY_CR // for backward compatibility
#define KEY_BS (Ctrl('H'))
#define KEY_BS2 (0x7f)
#define KEY_UP 0x0101