Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## next
- Add `Konsole` as a available terminal for iterm2 images

## 0.10.0
- Add `icy_sixel` feature that uses a Rust implementation of Sixel
- Remove `lazy_static` dependency in favor of `std::sync::LazyLock`
Expand Down
9 changes: 9 additions & 0 deletions src/printer/iterm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,15 @@ fn check_iterm_support() -> bool {
return true;
}
}

// Konsole does not have "TERM_PROGRAM" and only has "TERM=xterm-256color", which is too generic
// but in exchange, there is the following Konsole-only environment variable with which we can detect it
if let Ok(version) = std::env::var("KONSOLE_VERSION") {
if !version.is_empty() {
return true;
}
}

false
}

Expand Down