diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-21 19:18:44 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-21 19:18:44 +0800 |
commit | c431922490f08beb011af18f9ffb72a74b5d3a1c (patch) | |
tree | bf928a74c788a892dfc88965b0d866a33eb895a9 /mbbsd/visio.c | |
parent | 08bea601fe829e23a80cd66a3809e49590a43e2f (diff) | |
download | pttbbs-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 'mbbsd/visio.c')
-rw-r--r-- | mbbsd/visio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/visio.c b/mbbsd/visio.c index 03e835af..89a7b71b 100644 --- a/mbbsd/visio.c +++ b/mbbsd/visio.c @@ -957,7 +957,7 @@ vgetstring(char *_buf, int len, int flags, const char *defstr, const VGET_CALLBA break; // exiting keys - case '\n': case '\r': + case KEY_ENTER: abort = 1; break; @@ -1009,7 +1009,7 @@ vgetstring(char *_buf, int len, int flags, const char *defstr, const VGET_CALLBA } break; - case Ctrl('H'): case KEY_BS2: + case KEY_BS: case KEY_BS2: if (icurr > 0) { // kill previous one charracter. memmove(buf+icurr-1, buf+icurr, iend-icurr+1); |