From 6f4e8a3b6def646a739dc10b6a29455352db1709 Mon Sep 17 00:00:00 2001 From: hasezoey Date: Wed, 12 Nov 2025 13:34:19 +0100 Subject: [PATCH 1/2] fix(iterm): add Konsole as supported --- CHANGELOG.md | 1 + src/printer/iterm.rs | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b31b42f..8229556 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ - Remove `lazy_static` dependency in favor of `std::sync::LazyLock` - MSRV is now 1.80 - Use sixel if found in device attributes instead of static TERM list +- Add `Konsole` as a available terminal for iterm2 images ## 0.9.2 - Use iterm and sixel in more terminals diff --git a/src/printer/iterm.rs b/src/printer/iterm.rs index 3dd481c..b58e499 100644 --- a/src/printer/iterm.rs +++ b/src/printer/iterm.rs @@ -108,6 +108,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 } From ea4f54409407ec9762c3b7324c6454df73cc246b Mon Sep 17 00:00:00 2001 From: atanunq Date: Thu, 20 Nov 2025 13:48:09 +0200 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8229556..10de0b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,11 @@ ## 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` - MSRV is now 1.80 - Use sixel if found in device attributes instead of static TERM list -- Add `Konsole` as a available terminal for iterm2 images ## 0.9.2 - Use iterm and sixel in more terminals