summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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();
}