summaryrefslogtreecommitdiff
path: root/src/term/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/term/mod.rs')
-rw-r--r--src/term/mod.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs
index 3a86f887..a895d135 100644
--- a/src/term/mod.rs
+++ b/src/term/mod.rs
@@ -1335,6 +1335,16 @@ impl ansi::Handler for Term {
}
}
+ /// Set the indexed color value
+ ///
+ /// TODO needs access to `Config`, and `Config` should not overwrite values
+ /// when reloading
+ #[inline]
+ fn set_color(&mut self, index: usize, color: Rgb) {
+ trace!("set_color[{}] = {:?}", index, color);
+ self.colors[index] = color;
+ }
+
#[inline]
fn clear_screen(&mut self, mode: ansi::ClearMode) {
trace!("clear_screen: {:?}", mode);