summaryrefslogtreecommitdiffstats
path: root/include/ansi.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ansi.h')
-rw-r--r--include/ansi.h3
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