diff options
author | Christian Duerr <chrisduerr@users.noreply.github.com> | 2018-07-15 19:47:07 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-15 19:47:07 +0000 |
commit | 96b3d737a8ee1805ec548671a6ba8f219b2c2934 (patch) | |
tree | f9f0b2ac5ea3aef5698dc525b04d3c5823f0cd09 /src/ansi.rs | |
parent | 4ae2bc66f2bd213511997addfed8b589fdc97406 (diff) | |
download | alacritty-96b3d737a8ee1805ec548671a6ba8f219b2c2934.tar.gz alacritty-96b3d737a8ee1805ec548671a6ba8f219b2c2934.zip |
Add bright foreground color option
It was requested in jwilm/alacritty#825 that it should be possible to
add an optional bright foreground color.
This is now added to the primary colors structure and allows the user to
set a foreground color for bold normal text. This has no effect unless
the draw_bold_text_with_bright_colors option is also enabled.
If the color is not specified, the bright foreground color will fall
back to the normal foreground color.
This fixes #825.
Diffstat (limited to 'src/ansi.rs')
-rw-r--r-- | src/ansi.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ansi.rs b/src/ansi.rs index 3fbd580d..726550a0 100644 --- a/src/ansi.rs +++ b/src/ansi.rs @@ -558,11 +558,14 @@ pub enum NamedColor { DimCyan, /// Dim white DimWhite, + /// The bright foreground color + BrightForeground, } impl NamedColor { pub fn to_bright(self) -> Self { match self { + NamedColor::Foreground => NamedColor::BrightForeground, NamedColor::Black => NamedColor::BrightBlack, NamedColor::Red => NamedColor::BrightRed, NamedColor::Green => NamedColor::BrightGreen, |