Skip to content

Commit

Permalink
Clean up single use of terminfo
Browse files Browse the repository at this point in the history
  • Loading branch information
passcod committed May 8, 2021
1 parent 9a574ac commit 4e92381
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,14 +342,13 @@ impl Default for ClearScreen {

let term = var("TERM").ok();
let term = term.as_ref();
let terminfo = varfull("TERMINFO");

if cfg!(windows) {
return if is_microsoft_terminal() {
Self::XtermClear
} else if is_windows_10() {
Self::WindowsVtClear
} else if term.is_some() && terminfo {
} else if term.is_some() && varfull("TERMINFO") {
Self::Terminfo
} else if term.is_some() && which("tput").is_ok() {
Self::TputClear
Expand Down

0 comments on commit 4e92381

Please sign in to comment.