aboutsummaryrefslogtreecommitdiff
path: root/alacritty_terminal/src/term/cell.rs
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2021-09-15 01:08:10 -0600
committerJosh Rahm <rahm@google.com>2021-09-15 01:18:33 -0600
commit2ded77656793f340440fe0efb54119697bb22a1a (patch)
treedb9e584a2882f2137ff029800cf35a61a7502e65 /alacritty_terminal/src/term/cell.rs
parentd2b578e011d62311125033d895060986a96d3c88 (diff)
downloadr-alacritty-2ded77656793f340440fe0efb54119697bb22a1a.tar.gz
r-alacritty-2ded77656793f340440fe0efb54119697bb22a1a.tar.bz2
r-alacritty-2ded77656793f340440fe0efb54119697bb22a1a.zip
Added ability to set the special color for the undercur and underlines using the standard ANSI code 59
Diffstat (limited to 'alacritty_terminal/src/term/cell.rs')
-rw-r--r--alacritty_terminal/src/term/cell.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/alacritty_terminal/src/term/cell.rs b/alacritty_terminal/src/term/cell.rs
index 2191ced2..467d955a 100644
--- a/alacritty_terminal/src/term/cell.rs
+++ b/alacritty_terminal/src/term/cell.rs
@@ -62,6 +62,7 @@ pub struct Cell {
pub c: char,
pub fg: Color,
pub bg: Color,
+ pub sp: Color,
pub flags: Flags,
#[serde(default)]
extra: Option<Box<CellExtra>>,
@@ -74,6 +75,7 @@ impl Default for Cell {
c: ' ',
bg: Color::Named(NamedColor::Background),
fg: Color::Named(NamedColor::Foreground),
+ sp: Color::Named(NamedColor::Foreground),
flags: Flags::empty(),
extra: None,
}
@@ -116,6 +118,7 @@ impl GridCell for Cell {
(self.c == ' ' || self.c == '\t')
&& self.bg == Color::Named(NamedColor::Background)
&& self.fg == Color::Named(NamedColor::Foreground)
+ && self.sp == Color::Named(NamedColor::Foreground)
&& !self.flags.intersects(
Flags::INVERSE
| Flags::UNDERLINE