1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-27 12:23:46 +03:00

set underline and blink in fallback path

pull/29 inadvertently removed the fallback path for setting single
underline and slow blink.  Restore it.
This commit is contained in:
Mark Thomas 2019-06-02 21:29:12 +01:00 committed by Wez Furlong
parent 74bbf01014
commit 70741d4f80

View File

@ -47,6 +47,7 @@ impl TerminfoRenderer {
});
}
#[cfg_attr(feature = "cargo-clippy", allow(clippy::cognitive_complexity))]
fn flush_pending_attr<W: UnixTty + Write>(&mut self, out: &mut W) -> Fallible<()> {
macro_rules! attr_on {
($cap:ident, $sgr:expr) => {
@ -89,6 +90,14 @@ impl TerminfoRenderer {
_ => {}
}
if attr.underline() == Underline::Single {
attr_on!(Sgr::Underline(Underline::Single));
}
if attr.blink() == Blink::Slow {
attr_on!(Sgr::Blink(Blink::Slow));
}
if attr.reverse() {
attr_on!(EnterReverseMode, Sgr::Inverse(true));
}