aboutsummaryrefslogtreecommitdiffstats
path: root/src/attrs.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-11-04 09:17:05 -0500
committerJesse Luehrs <doy@tozt.net>2019-11-04 09:19:42 -0500
commit8cd3ca2c07b29e61f18c0c34db8b34b36a42e03b (patch)
tree7331c8dbaa7132751df0b03f2030058a20d239d4 /src/attrs.rs
parentd52d752af9a4bde993af7b0cb871e60b41eca2e0 (diff)
downloadvt100-rust-8cd3ca2c07b29e61f18c0c34db8b34b36a42e03b.tar.gz
vt100-rust-8cd3ca2c07b29e61f18c0c34db8b34b36a42e03b.zip
docs
Diffstat (limited to 'src/attrs.rs')
-rw-r--r--src/attrs.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/attrs.rs b/src/attrs.rs
index 2fffd2b..f1b59a6 100644
--- a/src/attrs.rs
+++ b/src/attrs.rs
@@ -1,7 +1,13 @@
+/// Represents a foreground or background color for cells.
#[derive(Eq, PartialEq, Debug, Copy, Clone)]
pub enum Color {
+ /// The default terminal color.
Default,
+
+ /// An indexed terminal color.
Idx(u8),
+
+ /// An RGB terminal color. The parameters are (red, green, blue).
Rgb(u8, u8, u8),
}