summaryrefslogtreecommitdiffstats
path: root/include/ansi.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ansi.h')
-rw-r--r--include/ansi.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/ansi.h b/include/ansi.h
index faa3b0f8..33ecd1f1 100644
--- a/include/ansi.h
+++ b/include/ansi.h
@@ -14,12 +14,13 @@
#define ESC_CHR '\x1b'
// Common ANSI commands.
-#define ANSI_RESET ESC_STR "[m"
-#define ANSI_COLOR(x) ESC_STR "[" #x "m"
+#define ANSI_RESET ESC_STR "[m"
+#define ANSI_COLOR(x) ESC_STR "[" #x "m"
#define ANSI_MOVETO(y,x) ESC_STR "[" #y ";" #x "H"
-#define ANSI_CLRTOEND ESC_STR "[K"
+#define ANSI_CLRTOEND ESC_STR "[K"
+#define ANSI_REVERSE ANSI_COLOR(7)
-#define ANSI_SAVEPOS ESC_STR "[s"
+#define ANSI_SAVEPOS ESC_STR "[s"
#define ANSI_RESTOREPOS ESC_STR "[u"
#define ANSI_IN_ESCAPE(x) (((x) >= '0' && (x) <= '9') || \