summaryrefslogtreecommitdiffstats
path: root/mbbsd/talk.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/talk.c')
-rw-r--r--mbbsd/talk.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index 7c19c5de..03b73815 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -1513,11 +1513,19 @@ do_talk(int fd)
fclose(flog);
redrawwin();
more(fpath, NA);
- ans[0] = 0;
+
// force user decide how to deal with the log
- while (ans[0] != 'c' && ans[0] != 'm')
+ while (1) {
getdata(b_lines - 1, 0, "清除(C) 移至備忘錄(M). (c/m)? ",
ans, sizeof(ans), LCECHO);
+ if (ans[0] == 'c' || ans[0] == 'm')
+ break;
+ move(b_lines-2, 0);
+ prints(ANSI_COLOR(0;1;3%d) "請正確輸入 c 或 m 的指令。" ANSI_RESET,
+ (now % 7)+1);
+ if (ans[0] == 0) outs("為避免誤按所以只 ENTER 是不行的。");
+ }
+
if (*ans == 'm') {
fileheader_t mymail;
char title[128];