summaryrefslogtreecommitdiff
path: root/src/ansi.h
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amade@asmblr.net>2012-08-09 02:16:11 +0200
committerAmadeusz Sławiński <amade@asmblr.net>2015-06-25 16:29:37 +0200
commitc95a95991455117d11dd82f791f86cf2990f3fdb (patch)
treea026c6867af62fd5c86d0c172e723a5b0ac0810e /src/ansi.h
parente752e34688f6ce4ca81e5350f586d8001a1e9bbf (diff)
downloadscreen-c95a95991455117d11dd82f791f86cf2990f3fdb.tar.gz
COLOR HANDLING: almost there
todo: cleanup of image.h try to remove cole2i coli2e so there is no need to do ^9 when setting colors
Diffstat (limited to 'src/ansi.h')
-rw-r--r--src/ansi.h33
1 files changed, 19 insertions, 14 deletions
diff --git a/src/ansi.h b/src/ansi.h
index 7269c9c..059f640 100644
--- a/src/ansi.h
+++ b/src/ansi.h
@@ -29,20 +29,25 @@
#define NATTR 6
-#define ATTR_DIM 0 /* Dim mode */
-#define ATTR_UNDERSCORE 1 /* Underscore mode */
-#define ATTR_BOLD 2 /* Bold mode */
-#define ATTR_REVERSE 3 /* Reverse mode */
-#define ATTR_STANDOUT 4 /* Standout mode */
-#define ATTR_BLINKING 5 /* Blinking */
-
-#define A_DIM (1<<ATTR_DIM)
-#define A_UNDERSCORE (1<<ATTR_UNDERSCORE)
-#define A_BOLD (1<<ATTR_BOLD)
-#define A_REVERSE (1<<ATTR_REVERSE)
-#define A_STANDOUT (1<<ATTR_STANDOUT)
-#define A_BLINKING (1<<ATTR_BLINKING)
-#define A_MAX (1<<(NATTR-1))
+#define ATTR_DI 0 /* Dim mode */
+#define ATTR_US 1 /* Underscore mode */
+#define ATTR_BD 2 /* Bold mode */
+#define ATTR_RV 3 /* Reverse mode */
+#define ATTR_SO 4 /* Standout mode */
+#define ATTR_BL 5 /* Blinking */
+
+#define A_DI (1<<ATTR_DI)
+#define A_US (1<<ATTR_US)
+#define A_BD (1<<ATTR_BD)
+#define A_RV (1<<ATTR_RV)
+#define A_SO (1<<ATTR_SO)
+#define A_BL (1<<ATTR_BL)
+#define A_MAX (1<<(NATTR-1))
+
+# define ATTR_BFG 6 /* bright foreground */
+# define ATTR_BBG 7 /* bright background */
+# define A_BFG (1<<ATTR_BFG)
+# define A_BBG (1<<ATTR_BBG)
#define ATYP_M (1<<0)
#define ATYP_S (1<<1)