summary refs log tree commit diff
path: root/stream.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-08-05 18:21:00 -0400
committerJune McEnroe <june@causal.agency>2019-08-05 18:29:02 -0400
commit85bd253aef05867251259dd06f2fc5bcc72f0474 (patch)
treee4e9806f1f773b61cbf729ed0018fd1d006a7919 /stream.h
parentAdd termDisplay (diff)
downloadstream-85bd253aef05867251259dd06f2fc5bcc72f0474.tar.gz
stream-85bd253aef05867251259dd06f2fc5bcc72f0474.zip
Add dim and blink attributes
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;
 };