diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-11 02:46:52 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-11 02:46:52 +0800 |
commit | f787c8fdfd24555801e2be483d13baaf610298c2 (patch) | |
tree | 4934e52fa6f4f5d2ddf5eb428f1abd022874b836 /mbbsd/edit.c | |
parent | dda5af373350d4b6649335e4ec8600a0baf2afe7 (diff) | |
download | pttbbs-f787c8fdfd24555801e2be483d13baaf610298c2.tar pttbbs-f787c8fdfd24555801e2be483d13baaf610298c2.tar.gz pttbbs-f787c8fdfd24555801e2be483d13baaf610298c2.tar.bz2 pttbbs-f787c8fdfd24555801e2be483d13baaf610298c2.tar.lz pttbbs-f787c8fdfd24555801e2be483d13baaf610298c2.tar.xz pttbbs-f787c8fdfd24555801e2be483d13baaf610298c2.tar.zst pttbbs-f787c8fdfd24555801e2be483d13baaf610298c2.zip |
update ansi escape scanner
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2824 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/edit.c')
-rw-r--r-- | mbbsd/edit.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/mbbsd/edit.c b/mbbsd/edit.c index fb085284..ec041eab 100644 --- a/mbbsd/edit.c +++ b/mbbsd/edit.c @@ -1842,9 +1842,6 @@ block_select(void) * * FIXME column could not start from 0 */ -#ifndef STR_ANSICODE -#define STR_ANSICODE "[0123456789;," -#endif void edit_outs(const char *text) @@ -1870,7 +1867,7 @@ edit_outs_n(const char *text, int n) if(inAnsi) { outc(ch); - if(strchr(STR_ANSICODE, ch) == 0) + if(!ANSI_IN_ESCAPE(ch)) { inAnsi = 0; outs(ANSI_RESET); @@ -3198,8 +3195,8 @@ vedit(char *fpath, int saveheader, int *islocal) edit_outs(&curr_buf->currline->data[curr_buf->edit_margin]); edit_msg(); } - } - } + } /* redraw */ + } /* main event loop */ exit_edit_buffer(); } |