summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-01 03:40:38 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-01 03:40:38 +0800
commit42f15ae72e331813e4fe868fffc80f625b684671 (patch)
tree85c13d5b2cf7ba72a4d4a1977481bc931e296e90 /mbbsd
parent19aee55841fb9db8d96d609089dfe982e1d63429 (diff)
downloadpttbbs-42f15ae72e331813e4fe868fffc80f625b684671.tar
pttbbs-42f15ae72e331813e4fe868fffc80f625b684671.tar.gz
pttbbs-42f15ae72e331813e4fe868fffc80f625b684671.tar.bz2
pttbbs-42f15ae72e331813e4fe868fffc80f625b684671.tar.lz
pttbbs-42f15ae72e331813e4fe868fffc80f625b684671.tar.xz
pttbbs-42f15ae72e331813e4fe868fffc80f625b684671.tar.zst
pttbbs-42f15ae72e331813e4fe868fffc80f625b684671.zip
broken display. revert to r1438
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1662 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/more.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/mbbsd/more.c b/mbbsd/more.c
index bc29a29a..0bdb361c 100644
--- a/mbbsd/more.c
+++ b/mbbsd/more.c
@@ -54,10 +54,10 @@ more_readln(int fd, unsigned char *buf)
int ch;
unsigned char *data, *tail, *cc;
- int len, bytes, in_ansi, in_big5;
+ int len, bytes, in_ansi;
int size, head, ansilen;
- len = bytes = in_ansi = in_big5 = ansilen = 0;
+ len = bytes = in_ansi = ansilen = 0;
tail = buf + ANSILINELEN - 1;
size = more_size;
head = more_head;
@@ -102,27 +102,12 @@ more_readln(int fd, unsigned char *buf)
*buf++ = ch;
if (!strchr(STR_ANSICODE, ch))
in_ansi = 0;
- } else if (in_big5) {
- ++len;
- *buf++ = ch;
- in_big5 = 0;
} else if (isprint2(ch)) {
len++;
*buf++ = ch;
- if (ch >= 0xa4 && ch <= 0xf9) /* first byte of big5 encoding */
- in_big5 = 1;
}
} while (len < t_columns && buf < tail);
-
- if (in_big5) {
- strcpy(buf - 1, "\033[1;34m>\033[m");
- buf += 10;
- --head;
- --data;
- --bytes;
- }
-
- if (len == t_columns && head < size && *data == '\n') {
+ if(len==t_columns && head<size && *data=='\n') {
/* XXX: not handle head==size, should read data */
/* no extra newline dirty hack for exact 80byte line */
data++; bytes++; head++;