summaryrefslogtreecommitdiffstats
path: root/mbbsd/mbbsd.c
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/mbbsd.c
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/mbbsd.c')
-rw-r--r--mbbsd/mbbsd.c7
1 files changed, 5 insertions, 2 deletions
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();
}