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 /include | |
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 'include')
-rw-r--r-- | include/ansi.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ansi.h b/include/ansi.h index cb7e86cd..d75df914 100644 --- a/include/ansi.h +++ b/include/ansi.h @@ -19,6 +19,9 @@ #define ANSI_MOVETO(y,x) ESC_STR "[" #y ";" #x "H" #define ANSI_CLRTOEND ESC_STR "[K" +#define ANSI_IN_ESCAPE(x) (((x) >= '0' && (x) <= '9') || \ + (x) == ';' || (x) == ',' || (x) == '[') + #endif /* INCLUDE_ANSI_H */ /* vim:sw=4 |