diff options
author | Christian Duerr <chrisduerr@users.noreply.github.com> | 2018-12-22 17:16:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-22 17:16:54 +0000 |
commit | 2f9b815ebdcee4558284e5e9cef6ef282dc87b08 (patch) | |
tree | 09bf03e5c69d9e7e99e04ff55983ea5774435b86 /src/term/mod.rs | |
parent | dad44134e2546dffec918a00169d32c6f9edc709 (diff) | |
download | r-alacritty-2f9b815ebdcee4558284e5e9cef6ef282dc87b08.tar.gz r-alacritty-2f9b815ebdcee4558284e5e9cef6ef282dc87b08.tar.bz2 r-alacritty-2f9b815ebdcee4558284e5e9cef6ef282dc87b08.zip |
Add proper underline and strikeout support
This makes use of the new rectangle rendering methods used to display
the colored visual bell to add proper underline and strikeout support to
Alacritty.
Diffstat (limited to 'src/term/mod.rs')
-rw-r--r-- | src/term/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs index fd2fcf88..bb65fba6 100644 --- a/src/term/mod.rs +++ b/src/term/mod.rs @@ -419,7 +419,7 @@ impl<'a> RenderableCellsIter<'a> { } } -#[derive(Debug)] +#[derive(Copy, Clone, Debug)] pub struct RenderableCell { /// A _Display_ line (not necessarily an _Active_ line) pub line: Line, @@ -1965,6 +1965,8 @@ impl ansi::Handler for Term { Attr::CancelUnderline => self.cursor.template.flags.remove(cell::Flags::UNDERLINE), Attr::Hidden => self.cursor.template.flags.insert(cell::Flags::HIDDEN), Attr::CancelHidden => self.cursor.template.flags.remove(cell::Flags::HIDDEN), + Attr::Strike => self.cursor.template.flags.insert(cell::Flags::STRIKEOUT), + Attr::CancelStrike => self.cursor.template.flags.remove(cell::Flags::STRIKEOUT), _ => { debug!("Term got unhandled attr: {:?}", attr); } |