summaryrefslogtreecommitdiff
path: root/src/term/mod.rs
diff options
context:
space:
mode:
authorChristian Duerr <chrisduerr@users.noreply.github.com>2018-09-23 23:05:15 +0000
committerGitHub <noreply@github.com>2018-09-23 23:05:15 +0000
commitcd79680ba23b3d9c22372c95fa53dec5b4ea7c8e (patch)
tree0d720395a394c4ddff9088e5597b56b776d26758 /src/term/mod.rs
parent9b694fcc547f664ed0fecdd5c84c067d7d3e7f14 (diff)
downloadalacritty-cd79680ba23b3d9c22372c95fa53dec5b4ea7c8e.tar.gz
alacritty-cd79680ba23b3d9c22372c95fa53dec5b4ea7c8e.zip
Implement config option for term colors 16..256
This adds a config option which allows setting terminal colors above the 0..16 range. Live config reload already works for this, so it is possible to change these colors the same way it works with the normal colors. If a color below 16 is specified, the configuration will throw an error, so the normal colors can't be overridden. This is just to prevent possible complications with the settings that already exist.
Diffstat (limited to 'src/term/mod.rs')
-rw-r--r--src/term/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs
index c2759802..f6f53dbe 100644
--- a/src/term/mod.rs
+++ b/src/term/mod.rs
@@ -900,6 +900,8 @@ impl Term {
pub fn update_config(&mut self, config: &Config) {
self.semantic_escape_chars = config.selection().semantic_escape_chars.clone();
self.original_colors.fill_named(config.colors());
+ self.original_colors.fill_cube(config.colors());
+ self.original_colors.fill_gray_ramp(config.colors());
for i in 0..color::COUNT {
if !self.color_modified[i] {
self.colors[i] = self.original_colors[i];