aboutsummaryrefslogtreecommitdiff
path: root/src/ansi.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ansi.rs')
-rw-r--r--src/ansi.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ansi.rs b/src/ansi.rs
index 3bcfff88..f6caee8b 100644
--- a/src/ansi.rs
+++ b/src/ansi.rs
@@ -536,6 +536,8 @@ pub enum NamedColor {
BrightWhite,
/// The foreground color
Foreground = 256,
+ /// The bright foreground color
+ BrightForeground,
/// The background color
Background,
/// Color for the text under the cursor
@@ -563,6 +565,7 @@ pub enum NamedColor {
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,