summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-10-02 00:02:27 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-10-02 00:02:27 +0800
commitf01b76e5992a80dbe29e02448596b0834d2a3cb1 (patch)
treefc335d3ff7211b49e9addb1d94870b36778f695f /mbbsd
parentaf82c7af0d9f6834866ad4a68ef3253c664878a7 (diff)
downloadpttbbs-f01b76e5992a80dbe29e02448596b0834d2a3cb1.tar
pttbbs-f01b76e5992a80dbe29e02448596b0834d2a3cb1.tar.gz
pttbbs-f01b76e5992a80dbe29e02448596b0834d2a3cb1.tar.bz2
pttbbs-f01b76e5992a80dbe29e02448596b0834d2a3cb1.tar.lz
pttbbs-f01b76e5992a80dbe29e02448596b0834d2a3cb1.tar.xz
pttbbs-f01b76e5992a80dbe29e02448596b0834d2a3cb1.tar.zst
pttbbs-f01b76e5992a80dbe29e02448596b0834d2a3cb1.zip
KEY_DEL, KEY_HOME, KEY_END of getdata()
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@534 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/io.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mbbsd/io.c b/mbbsd/io.c
index 82895f28..84683ce8 100644
--- a/mbbsd/io.c
+++ b/mbbsd/io.c
@@ -1,4 +1,4 @@
-/* $Id: io.c,v 1.23 2002/09/11 03:22:50 kcwu Exp $ */
+/* $Id: io.c,v 1.24 2002/10/01 16:02:27 in2 Exp $ */
#include "bbs.h"
#if defined(linux)
@@ -433,6 +433,7 @@ oldgetdata(int line, int col, char *prompt, char *buf, int len, int echo)
clen = currchar;
break;
case Ctrl('D'):
+ case KEY_DEL:
if (buf[currchar]) {
clen--;
for (i = currchar; i <= clen; i++)
@@ -444,9 +445,11 @@ oldgetdata(int line, int col, char *prompt, char *buf, int len, int echo)
}
break;
case Ctrl('A'):
+ case KEY_HOME:
currchar = 0;
break;
case Ctrl('E'):
+ case KEY_END:
currchar = clen;
break;
default: