diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-29 13:03:56 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-29 13:03:56 +0800 |
commit | 0c75ac4ac47d1f3efb0f1443256f79bf69b89838 (patch) | |
tree | 166c93f728ddeb8646c65fe82db52c45978bd224 /mbbsd | |
parent | 75169afcc32f1fee13bf7b5027bf41bc14aca93b (diff) | |
download | pttbbs-0c75ac4ac47d1f3efb0f1443256f79bf69b89838.tar pttbbs-0c75ac4ac47d1f3efb0f1443256f79bf69b89838.tar.gz pttbbs-0c75ac4ac47d1f3efb0f1443256f79bf69b89838.tar.bz2 pttbbs-0c75ac4ac47d1f3efb0f1443256f79bf69b89838.tar.lz pttbbs-0c75ac4ac47d1f3efb0f1443256f79bf69b89838.tar.xz pttbbs-0c75ac4ac47d1f3efb0f1443256f79bf69b89838.tar.zst pttbbs-0c75ac4ac47d1f3efb0f1443256f79bf69b89838.zip |
rawmode: prompt user to confirm
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2875 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/pmore.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c index 74aa4f0f..83134a24 100644 --- a/mbbsd/pmore.c +++ b/mbbsd/pmore.c @@ -633,7 +633,7 @@ mf_search(int direction) flFound = 1; break; } else { - /* go forward. we can do DBCS check here. */ + /* DBCS check here. */ if(PMORE_DBCS_LEADING(*mf.disps++)) mf.disps++; } @@ -655,7 +655,7 @@ mf_search(int direction) flFound = 1; } else { - /* go forward. we can do DBCS check here. */ + /* DBCS check here. */ if(PMORE_DBCS_LEADING(*mf.disps++)) mf.disps++; } @@ -2206,8 +2206,20 @@ pmore(char *fpath, int promptend) /* should we do first time prompt checking here, * or remove hotkey '\\'? - static unsigned char first_prompt = 1; */ + static unsigned char first_prompt = 1; + if(first_prompt) + { + char ans[3] = ""; + getdata(b_lines - 1, 0, + "確定改變預設內容顯示方式嗎? " + "(若不懂請直接按 Enter)[y/N]" + , + ans, 3, LCECHO); + if(ans[0] != 'y') + break; + first_prompt = 0; + } bpref.rawmode ++; } bpref.rawmode %= MFDISP_RAW_MODES; |