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 authored and Wez Furlong committed 2019-06-02 13:55:07 -07:00
1 parent 74bbf01014
commit 70741d4f80
1 file changed
+9
+9
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));
}