Skip to content

Commit f391bde

Browse files
committed
fix(iterm): add Konsole as supported
1 parent 1bd5179 commit f391bde

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/printer/iterm.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,15 @@ fn check_iterm_support() -> bool {
108108
return true;
109109
}
110110
}
111+
112+
// Konsole does not have "TERM_PROGRAM" and only has "TERM=xterm-256color", which is too generic
113+
// but in exchange, there is the following Konsole-only environment variable with which we can detect it
114+
if let Ok(version) = std::env::var("KONSOLE_VERSION") {
115+
if !version.is_empty() {
116+
return true;
117+
}
118+
}
119+
111120
false
112121
}
113122

0 commit comments

Comments
 (0)