summaryrefslogtreecommitdiffstats
path: root/mbbsd/admin.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-08-06 04:19:49 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-08-06 04:19:49 +0800
commitff24026ce0222c9b0bc78ee075dd0ca9bb50c193 (patch)
tree70f8bffef1edbe949b5aaf83c5dd8717fdb9e87b /mbbsd/admin.c
parent7fe0f796e47c21a8975c956830f0b63f024e35d2 (diff)
downloadpttbbs-ff24026ce0222c9b0bc78ee075dd0ca9bb50c193.tar
pttbbs-ff24026ce0222c9b0bc78ee075dd0ca9bb50c193.tar.gz
pttbbs-ff24026ce0222c9b0bc78ee075dd0ca9bb50c193.tar.bz2
pttbbs-ff24026ce0222c9b0bc78ee075dd0ca9bb50c193.tar.lz
pttbbs-ff24026ce0222c9b0bc78ee075dd0ca9bb50c193.tar.xz
pttbbs-ff24026ce0222c9b0bc78ee075dd0ca9bb50c193.tar.zst
pttbbs-ff24026ce0222c9b0bc78ee075dd0ca9bb50c193.zip
large terminal rules.
- vmsg with formats is now vmsgf. - deprecates vmsg_lines = i hope changes in admin does not make trouble because the old way looks like a mess within my terminal. - pending issue: = pressanykey_or_callangel is in oldway = showtitle, msg_seperator, and others should also be fixed git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2995 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/admin.c')
-rw-r--r--mbbsd/admin.c21
1 files changed, 13 insertions, 8 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c
index 1cb37787..cb79582c 100644
--- a/mbbsd/admin.c
+++ b/mbbsd/admin.c
@@ -779,7 +779,7 @@ x_file(void)
return FULLUPDATE;
}
aborted = vedit(fpath, NA, NULL);
- vmsg("\n\n系統檔案[%s]:%s", fpath,
+ vmsgf("\n\n系統檔案[%s]:%s", fpath,
(aborted == -1) ? "未改變" : "更新完畢");
return FULLUPDATE;
}
@@ -1092,7 +1092,7 @@ scan_register_form(const char *regfile, int automode, int neednum)
}
Rename(regfile, fname);
if ((fn = fopen(fname, "r")) == NULL) {
- vmsg("系統錯誤,無法讀取註冊資料檔: %s", fname);
+ vmsgf("系統錯誤,無法讀取註冊資料檔: %s", fname);
return -1;
}
if (neednum) { /* 被強迫審的 */
@@ -1136,6 +1136,7 @@ scan_register_form(const char *regfile, int automode, int neednum)
uid = cuser.userid;
move(1, 0);
+ clrtobot();
prints("帳號位置 :%d\n", unum);
user_display(&muser, 1);
move(14, 0);
@@ -1159,8 +1160,9 @@ scan_register_form(const char *regfile, int automode, int neednum)
ans[0] = 'd';
} else {
if (search_ulist(unum) == NULL)
- ans[0] = vmsg_lines(22,
- "是否接受此資料(Y/N/Q/Del/Skip)?[S])");
+ {
+ ans[0] = getkey("是否接受此資料(Y/N/Q/Del/Skip)?[S])");
+ }
else
ans[0] = 's';
if ('A' <= ans[0] && ans[0] <= 'Z')
@@ -1196,16 +1198,19 @@ scan_register_form(const char *regfile, int automode, int neednum)
/* please confirm match REJECT_REASONS here */
case 'n':
if (ans[0] == 'n') {
- for (n = 0; field[n]; n++)
- prints("%s: %s\n", finfo[n], fdata[n]);
- move(9, 0);
+ int nf = 0;
+ move(8, 0);
+ clrtobot();
outs("請提出退回申請表原因,按 <enter> 取消\n");
for (n = 0; reason[n]; n++)
prints("%d) 請%s\n", n, reason[n]);
+ outs("\n"); // preserved for prompt
+ for (nf = 0; field[nf]; nf++)
+ prints("%s: %s\n", finfo[nf], fdata[nf]);
} else
buf[0] = ans[0];
if (ans[0] != 'n' ||
- getdata(10 + n, 0, "退回原因:", buf, 60, DOECHO))
+ getdata(9 + n, 0, "退回原因:", buf, 60, DOECHO))
if ((buf[0] - '0') >= 0 && (buf[0] - '0') < n) {
int i;
fileheader_t mhdr;