summaryrefslogtreecommitdiffstats
path: root/mbbsd/screen.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-17 11:26:22 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-17 11:26:22 +0800
commitf665f13b5bdcb87f19a0681481f6044cbcc109b9 (patch)
tree59dc95cf053cc3e4ee3cbabc18f218f78d866404 /mbbsd/screen.c
parente12b8fb5f87d5bede1af88074cd6c85be93b121c (diff)
downloadpttbbs-f665f13b5bdcb87f19a0681481f6044cbcc109b9.tar
pttbbs-f665f13b5bdcb87f19a0681481f6044cbcc109b9.tar.gz
pttbbs-f665f13b5bdcb87f19a0681481f6044cbcc109b9.tar.bz2
pttbbs-f665f13b5bdcb87f19a0681481f6044cbcc109b9.tar.lz
pttbbs-f665f13b5bdcb87f19a0681481f6044cbcc109b9.tar.xz
pttbbs-f665f13b5bdcb87f19a0681481f6044cbcc109b9.tar.zst
pttbbs-f665f13b5bdcb87f19a0681481f6044cbcc109b9.zip
- general message update and optimization
- change search_num() to getdata(), allow unified control git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3698 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/screen.c')
-rw-r--r--mbbsd/screen.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/mbbsd/screen.c b/mbbsd/screen.c
index 9a8f74e5..853d3110 100644
--- a/mbbsd/screen.c
+++ b/mbbsd/screen.c
@@ -45,6 +45,9 @@ move_ansi(int y, int x)
return;
slp = &big_picture[y];
+ if (slp->len < 1)
+ return;
+
slp->data[slp->len] = 0;
x += (strlen((char*)slp->data) - strlen_noansi((char*)slp->data));
cur_col = x;
@@ -246,9 +249,9 @@ refresh(void)
#endif // DBCSAWARE
#if 0
- // disable now, bugs:
- // (1) pmore scrolling failed
- // (2) input number (goto) in bbs list (search_num)
+ // disabled now, bugs:
+ // (1) input number (goto) in bbs list (search_num)
+ // (2) some empty lines becomes weird (eg, b_config)
//
// more effort to determine ANSI smod
if (bp->smod > 0)
@@ -258,12 +261,13 @@ refresh(void)
{
if (bp->data[iesc] == ESC_CHR)
{
- bp->smod = iesc;
+ bp->smod = 0;// iesc;
+ bp->emod =len -1;
break;
}
}
}
-#endif
+#endif
if (bp->emod >= len)
bp->emod = len - 1;