summary refs log tree commit diff
path: root/stream.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stream.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/stream.h b/stream.h
index 0bb7507..8726381 100644
--- a/stream.h
+++ b/stream.h
@@ -21,8 +21,17 @@
 
 typedef unsigned uint;
 
+enum Attr {
+	Bold      = 1 << 0,
+	Dim       = 1 << 1,
+	Italic    = 1 << 2,
+	Underline = 1 << 3,
+	Blink     = 1 << 4,
+	Reverse   = 1 << 5,
+};
+
 struct Style {
-	bool bold, italic, underline, reverse;
+	enum Attr attr;
 	int bg, fg;
 };