summaryrefslogtreecommitdiffstats
path: root/mbbsd/chat.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-17 09:47:43 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-17 09:47:43 +0800
commit9e11577128c92707c2db3f3e44814a3be0d7bf6f (patch)
tree25d438fbc3009315f1d9c54764225325921a2ccc /mbbsd/chat.c
parente20bd69d66148c34fee47e1f1f372963a871c047 (diff)
downloadpttbbs-9e11577128c92707c2db3f3e44814a3be0d7bf6f.tar
pttbbs-9e11577128c92707c2db3f3e44814a3be0d7bf6f.tar.gz
pttbbs-9e11577128c92707c2db3f3e44814a3be0d7bf6f.tar.bz2
pttbbs-9e11577128c92707c2db3f3e44814a3be0d7bf6f.tar.lz
pttbbs-9e11577128c92707c2db3f3e44814a3be0d7bf6f.tar.xz
pttbbs-9e11577128c92707c2db3f3e44814a3be0d7bf6f.tar.zst
pttbbs-9e11577128c92707c2db3f3e44814a3be0d7bf6f.zip
- (internal) visio: add vgets
- (internal) add key name KEY_BS2 - (internal) move getDBCSstatus to DBCS_Status git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4174 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/chat.c')
-rw-r--r--mbbsd/chat.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mbbsd/chat.c b/mbbsd/chat.c
index e7b5f1dd..fe954bfc 100644
--- a/mbbsd/chat.c
+++ b/mbbsd/chat.c
@@ -402,7 +402,7 @@ t_chat(void)
#ifdef DBCSAWARE
if(currchar > 0 &&
ISDBCSAWARE() &&
- getDBCSstatus((unsigned char*)inbuf, currchar) == DBCS_TRAILING)
+ DBCS_Status(inbuf, currchar) == DBCS_TRAILING)
currchar --;
#endif
}
@@ -414,7 +414,7 @@ t_chat(void)
#ifdef DBCSAWARE
if(inbuf[currchar] &&
ISDBCSAWARE() &&
- getDBCSstatus((unsigned char*)inbuf, currchar) == DBCS_TRAILING)
+ DBCS_Status(inbuf, currchar) == DBCS_TRAILING)
currchar++;
#endif
}
@@ -503,12 +503,12 @@ t_chat(void)
}
print_chatid(chatid);
move(b_lines - 1, chatid_len);
- } else if (ch == Ctrl('H') || ch == '\177') {
+ } else if (ch == Ctrl('H') || ch == KEY_BS2) {
if (currchar) {
#ifdef DBCSAWARE
int dbcs_off = 1;
if (ISDBCSAWARE() &&
- getDBCSstatus((unsigned char*)inbuf, currchar-1) == DBCS_TRAILING)
+ DBCS_Status(inbuf, currchar-1) == DBCS_TRAILING)
dbcs_off = 2;
#endif
currchar -= dbcs_off;
@@ -532,7 +532,7 @@ t_chat(void)
#ifdef DBCSAWARE
int dbcs_off = 1;
if (ISDBCSAWARE() && inbuf[currchar+1] &&
- getDBCSstatus((unsigned char*)inbuf, currchar+1) == DBCS_TRAILING)
+ DBCS_Status(inbuf, currchar+1) == DBCS_TRAILING)
dbcs_off = 2;
#endif
inbuf[69] = '\0';