summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-09-11 17:47:32 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-09-11 17:47:32 +0800
commit56c589b8418d5197641ae4c0a83608b63aa0101f (patch)
treed6451bc6e1d6d6ac3d7f8a24cdec0e45ffb279af
parentc4c4f8e3bbeef1608f06f145a013ed66e9fd74ac (diff)
downloadpttbbs-56c589b8418d5197641ae4c0a83608b63aa0101f.tar
pttbbs-56c589b8418d5197641ae4c0a83608b63aa0101f.tar.gz
pttbbs-56c589b8418d5197641ae4c0a83608b63aa0101f.tar.bz2
pttbbs-56c589b8418d5197641ae4c0a83608b63aa0101f.tar.lz
pttbbs-56c589b8418d5197641ae4c0a83608b63aa0101f.tar.xz
pttbbs-56c589b8418d5197641ae4c0a83608b63aa0101f.tar.zst
pttbbs-56c589b8418d5197641ae4c0a83608b63aa0101f.zip
quick hack to fix the clear_to_eol bug in board list
the bug may still appear otherwhere git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@519 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/board.c5
-rw-r--r--pttbbs/mbbsd/screen.c4
2 files changed, 5 insertions, 4 deletions
diff --git a/pttbbs/mbbsd/board.c b/pttbbs/mbbsd/board.c
index 368241fb..e41f2c5f 100644
--- a/pttbbs/mbbsd/board.c
+++ b/pttbbs/mbbsd/board.c
@@ -1,4 +1,4 @@
-/* $Id: board.c,v 1.58 2002/09/11 07:16:49 kcwu Exp $ */
+/* $Id: board.c,v 1.59 2002/09/11 09:47:32 kcwu Exp $ */
#include "bbs.h"
#define BRC_STRLEN 15 /* Length of board name */
#define BRC_MAXSIZE 24576
@@ -648,8 +648,7 @@ show_brdlist(int head, int clsflag, int newflag)
prints("%2d ", ptr->bh->nuser);
else
prints(" %c ", ptr->bh->bvote ? 'V' : ' ');
- prints("%.*s", t_columns - 67, ptr->bh->BM);
- refresh();
+ prints("%.*s\033[K", t_columns - 67, ptr->bh->BM);
} else {
prints("%-40.40s %.*s", ptr->bh->title + 7,
t_columns - 67, ptr->bh->BM);
diff --git a/pttbbs/mbbsd/screen.c b/pttbbs/mbbsd/screen.c
index fb367618..76e1a6de 100644
--- a/pttbbs/mbbsd/screen.c
+++ b/pttbbs/mbbsd/screen.c
@@ -1,4 +1,4 @@
-/* $Id: screen.c,v 1.10 2002/09/11 07:16:49 kcwu Exp $ */
+/* $Id: screen.c,v 1.11 2002/09/11 09:47:32 kcwu Exp $ */
#include "bbs.h"
#ifdef SUPPORT_GB
@@ -194,6 +194,8 @@ refresh()
}
}
if (bp->oldlen > len) {
+ /* XXX len/oldlen also count the length of escape sequence,
+ * before we fix it, we must print \033[K everywhere */
rel_move(tc_col, tc_line, len, i);
o_cleol();
}