summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-25 10:12:33 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-25 10:12:33 +0800
commitb04400b441add0a7373a94df5d32ce512ada1b10 (patch)
tree8452f22f289d568b19dc3cafa8791ef9ee069b85 /mbbsd
parent51b7ba487e8f9e8a8a45c6c29aa6a125196b2987 (diff)
downloadpttbbs-b04400b441add0a7373a94df5d32ce512ada1b10.tar
pttbbs-b04400b441add0a7373a94df5d32ce512ada1b10.tar.gz
pttbbs-b04400b441add0a7373a94df5d32ce512ada1b10.tar.bz2
pttbbs-b04400b441add0a7373a94df5d32ce512ada1b10.tar.lz
pttbbs-b04400b441add0a7373a94df5d32ce512ada1b10.tar.xz
pttbbs-b04400b441add0a7373a94df5d32ce512ada1b10.tar.zst
pttbbs-b04400b441add0a7373a94df5d32ce512ada1b10.zip
- mbbsd: redraw on display change
- bbs: workaround clrtoln bug in screen.c git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3740 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/bbs.c5
-rw-r--r--mbbsd/mbbsd.c7
2 files changed, 9 insertions, 3 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 5baeb752..b1aaa641 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -3149,6 +3149,9 @@ view_postinfo(int ent, const fileheader_t * fhdr, const char *direct, int crs_ln
move(area_l-(area_l < l), 0);
clrtoln(area_l -(area_l < l) + area_lines+1);
+ outc(' '); outs(ANSI_CLRTOEND);
+ move(area_l -(area_l < l) + area_lines, 0);
+ outc(' '); outs(ANSI_CLRTOEND);
move(area_l, 0);
prints(" ┌───────────────────────────────────┐\n");
@@ -3159,7 +3162,7 @@ view_postinfo(int ent, const fileheader_t * fhdr, const char *direct, int crs_ln
char aidc[10];
aidu2aidc(aidc, aidu);
- prints(" │ 此篇文章的" AID_DISPLAYNAME "為: " ANSI_COLOR(1) "#%s" ANSI_RESET " (%s看板)\n", aidc, currboard && currboard[0] ? currboard : "未知");
+ prints(" │ 此篇文章的" AID_DISPLAYNAME "為: " ANSI_COLOR(1) "#%s" ANSI_RESET " (%s)\n", aidc, currboard && currboard[0] ? currboard : "未知");
}
else
{
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 0aefee21..e9f76a35 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -701,10 +701,12 @@ login_query(void)
if (uid[0] && uid[len - 1] == '.') {
set_converting_type(CONV_GB);
uid[len - 1] = 0;
+ redrawwin();
}
else if (uid[0] && uid[len - 1] == ',') {
set_converting_type(CONV_UTF8);
uid[len - 1] = 0;
+ redrawwin();
}
else if (len >= IDLEN + 1)
uid[IDLEN] = 0;
@@ -727,7 +729,8 @@ login_query(void)
if (initcuser(uid)< 1) exit (0) ;
cuser.userlevel = 0;
- cuser.uflag = PAGER_FLAG | BRDSORT_FLAG | MOVIE_FLAG;
+ cuser.uflag = PAGER_FLAG | BRDSORT_FLAG | MOVIE_FLAG | DBCS_NOINTRESC;
+ // can we prevent mkuserdir() here?
mkuserdir(cuser.userid);
break;
@@ -1122,6 +1125,7 @@ user_login(void)
setup_utmp(LOGIN);
enter_uflag = cuser.uflag;
lasttime = *localtime4(&cuser.lastlogin);
+ redrawwin();
/* show welcome_login */
if( (ifbirth = (ptime.tm_mday == cuser.day &&
@@ -1319,7 +1323,6 @@ start_client(void)
auto_close_polls(); /* 自動開票 */
Signal(SIGALRM, SIG_IGN);
-
main_menu();
}