diff options
author | Joe Wilm <joe@jwilm.com> | 2016-10-28 08:52:56 -0700 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-10-28 08:52:56 -0700 |
commit | 7cd8a6ca12cd37ae354084c7246060219b1e3af8 (patch) | |
tree | aa23a6355e0550161b957d61d50a663b288c6c2f /src/ansi.rs | |
parent | e503baf2e753a1cc8c287f10fb1460635d093168 (diff) | |
parent | f8cb6d42cc0947e93d8913b894d7105afdfe1a2e (diff) | |
download | r-alacritty-7cd8a6ca12cd37ae354084c7246060219b1e3af8.tar.gz r-alacritty-7cd8a6ca12cd37ae354084c7246060219b1e3af8.tar.bz2 r-alacritty-7cd8a6ca12cd37ae354084c7246060219b1e3af8.zip |
Merge branch 'reload-colors'
Diffstat (limited to 'src/ansi.rs')
-rw-r--r-- | src/ansi.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ansi.rs b/src/ansi.rs index 45cc66f9..c419d7e5 100644 --- a/src/ansi.rs +++ b/src/ansi.rs @@ -337,6 +337,10 @@ pub enum Color { BrightCyan, /// Bright white BrightWhite, + /// The foreground color + Foreground, + /// The background color + Background, } /// Terminal character attributes @@ -384,10 +388,6 @@ pub enum Attr { Background(Color), /// Set specific background color BackgroundSpec(Rgb), - /// Set default foreground - DefaultForeground, - /// Set default background - DefaultBackground, } impl<'a, H: Handler + TermInfo + 'a> vte::Perform for Performer<'a, H> { @@ -584,7 +584,7 @@ impl<'a, H: Handler + TermInfo + 'a> vte::Perform for Performer<'a, H> { break; } }, - 39 => Attr::DefaultForeground, + 39 => Attr::Foreground(Color::Foreground), 40 => Attr::Background(Color::Black), 41 => Attr::Background(Color::Red), 42 => Attr::Background(Color::Green), @@ -600,7 +600,7 @@ impl<'a, H: Handler + TermInfo + 'a> vte::Perform for Performer<'a, H> { break; } }, - 49 => Attr::DefaultBackground, + 49 => Attr::Background(Color::Background), 90 => Attr::Foreground(Color::BrightBlack), 91 => Attr::Foreground(Color::BrightRed), 92 => Attr::Foreground(Color::BrightGreen), |