X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibterm%2Fterminfo%2Fmod.rs;h=c5e68eed4072541a2e81630dcc15345a8bd09122;hb=6f4ab9458a7ad06c8ce630604f533c8c0c0acef4;hp=395d966b9f25c74b4066edf257aff62587bef446;hpb=56bb7b64c83f7f7abd0fe66b96349b52e79e7e9a;p=rust.git diff --git a/src/libterm/terminfo/mod.rs b/src/libterm/terminfo/mod.rs index 395d966b9f2..c5e68eed407 100644 --- a/src/libterm/terminfo/mod.rs +++ b/src/libterm/terminfo/mod.rs @@ -190,7 +190,7 @@ fn supports_attr(&self, attr: Attr) -> bool { fn reset(&mut self) -> io::Result { // are there any terminals that have color/attrs and not sgr0? // Try falling back to sgr, then op - let cmd = match ["sg0", "sgr", "op"] + let cmd = match ["sgr0", "sgr", "op"] .iter() .filter_map(|cap| self.ti.strings.get(*cap)) .next() { @@ -231,7 +231,7 @@ pub fn new_with_terminfo(out: T, terminfo: TermInfo) -> TerminfoTerminal { }; TerminfoTerminal { - out: out, + out, ti: terminfo, num_colors: nc, }