From e3698abfb576cde09846fc735f4fda4dc6f48ba8 Mon Sep 17 00:00:00 2001 From: piaip Date: Tue, 28 Jun 2005 10:32:07 +0000 Subject: pmore: to disable cursor moving ANSI sequences git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2872 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/pmore.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mbbsd/pmore.c') 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; } -- cgit v1.2.3