aboutsummaryrefslogtreecommitdiffstats
path: root/src/attrs.rs
diff options
context:
space:
mode:
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),
}