diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-28 18:32:07 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-28 18:32:07 +0800 |
commit | e3698abfb576cde09846fc735f4fda4dc6f48ba8 (patch) | |
tree | 4688175a8f161a6dec78b868bbe570920f094fa2 /mbbsd | |
parent | dad13c35b2853f053afe41a35036a65f0a0b9289 (diff) | |
download | pttbbs-e3698abfb576cde09846fc735f4fda4dc6f48ba8.tar pttbbs-e3698abfb576cde09846fc735f4fda4dc6f48ba8.tar.gz pttbbs-e3698abfb576cde09846fc735f4fda4dc6f48ba8.tar.bz2 pttbbs-e3698abfb576cde09846fc735f4fda4dc6f48ba8.tar.lz pttbbs-e3698abfb576cde09846fc735f4fda4dc6f48ba8.tar.xz pttbbs-e3698abfb576cde09846fc735f4fda4dc6f48ba8.tar.zst pttbbs-e3698abfb576cde09846fc735f4fda4dc6f48ba8.zip |
pmore: to disable cursor moving ANSI sequences
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2872 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/pmore.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c index bd93863b..54eba1bc 100644 --- a/mbbsd/pmore.c +++ b/mbbsd/pmore.c @@ -45,6 +45,7 @@ #define PMORE_USE_OPT_SCROLL // optimized scroll #define PMORE_USE_DBCS_WRAP // safe wrap for DBCS. #define PMORE_USE_ASCII_MOVIE // support ascii movie +#define PMORE_RESTRICT_ANSI_MOVEMENT // user cannot use ANSI escapes to move #define PMORE_WORKAROUND_POORTERM // try to work with poor terminal sys #define PMORE_ACCURATE_WRAPEND // try more harder to find file end in wrap mode @@ -1167,6 +1168,10 @@ mf_display() case MFDISP_RAW_PLAIN: break; default: +#ifdef PMORE_RESTRICT_ANSI_MOVEMENT + if(strchr("ABCDfjHJRu", c) != NULL) + c = 's'; // "save cursor pos" +#endif outc(c); break; } |