diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-05 15:16:36 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-05 15:16:36 +0800 |
commit | a767a371af08be8b48743fe53657645693c81519 (patch) | |
tree | 2c98d7dda004ca55e7b50405ef6366ad95301a5f | |
parent | ef92786f2f7f6844b6a7950c7663050f8c8d584a (diff) | |
download | pttbbs-a767a371af08be8b48743fe53657645693c81519.tar pttbbs-a767a371af08be8b48743fe53657645693c81519.tar.gz pttbbs-a767a371af08be8b48743fe53657645693c81519.tar.bz2 pttbbs-a767a371af08be8b48743fe53657645693c81519.tar.lz pttbbs-a767a371af08be8b48743fe53657645693c81519.tar.xz pttbbs-a767a371af08be8b48743fe53657645693c81519.tar.zst pttbbs-a767a371af08be8b48743fe53657645693c81519.zip |
pmore: anti XXMan DBCS detection, improve Windows telnet portability
(both caused by line end processing)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3634 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/pmore.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c index 9bc05ce0..5907f264 100644 --- a/mbbsd/pmore.c +++ b/mbbsd/pmore.c @@ -40,12 +40,12 @@ * - New Invisible Frame Header Code [done] * - Playback Control (pause, stop, skip) [done] * - Interactive Movie (Hyper-text) [done] - * - Traditional Movie Compatible Mode + * - Preference System (like I in boards) [done] * - Support Anti-anti-idle (ex, PCMan sends up-down) - * - Virtual Contatenate [pending] + * - Traditional Movie Compatible Mode * - Better help system - * - Configuration system (like I in boards) - * - Drop ANSI between DBCS words if outputing UTF8 (or if user request) + * - Virtual Contatenate [pending] + * - Drop ANSI between DBCS words if outputing UTF8 [drop] (or if user request) */ // --------------------------------------------------------------- <FEATURES> @@ -1737,12 +1737,12 @@ pmore(char *fpath, int promptend) int w = t_columns-1; const char *s = - " 這份文件是可播放的文字動畫,要開始播放嗎? [Y/n]"; + " ☆ 這份文件是可播放的文字動畫,要開始播放嗎? [Y/n]"; outs(ANSI_RESET ANSI_COLOR(1;33;44)); w -= strlen(s); outs(s); - while(w-- > 0) outc(' '); outs(ANSI_RESET); + while(w-- > 0) outc(' '); outs(ANSI_RESET ANSI_CLRTOEND); w = tolower(igetch()); if( w != 'n' && @@ -2421,7 +2421,8 @@ void pmore_Preference() { int i = 0; - static int lastkey = '\\'; // default key + // TODO even better pref navigation, like arrow keys + // static int lastkey = '\\'; // default key while (1) { @@ -2611,7 +2612,7 @@ mf_moviePromptPlaying(int type) w -= strlen(s); outs(s); - while(w-- > 0) outc(' '); outs(ANSI_RESET ANSI_CLRTOEND); + while(w-- > 0) outc(' '); outs(ANSI_RESET ANSI_CLRTOEND "\n"); if (type) { move(b_lines, 0); @@ -3157,7 +3158,7 @@ mf_movieOptionHandler(unsigned char *opt, unsigned char *end) if (!hideOpts && maxsel > 0) { int iw = 0; - for (iw = 0; iw + promptlen < t_columns; iw++) + for (iw = 0; iw + promptlen < t_columns-1; iw++) outc(' '); outs(ANSI_RESET ANSI_CLRTOEND); } |