diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-13 18:53:37 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-13 18:53:53 +0300 |
| commit | c542fc871743f96f4e665e80f9274a262421d847 (patch) | |
| tree | c3e131449c2fb1d2efc1eb823cfd0123a6e32cd1 /src/main.rs | |
| parent | b02a9a81d2316822822c81cbb806012ee278fb68 (diff) | |
fix: gate kitty graphics behind config
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index d2dfedd9..7fcf624f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -427,7 +427,9 @@ fn main() -> io::Result<()> { if panic_in_tmux { let _ = std::io::Write::write_all(&mut io::stdout(), b"\x1b[>4;0m"); } - let _ = crate::kitty_graphics::clear_all_host_graphics(); + if crate::kitty_graphics::is_enabled() { + let _ = crate::kitty_graphics::clear_all_host_graphics(); + } let _ = execute!( io::stdout(), PopKeyboardEnhancementFlags, @@ -490,7 +492,9 @@ fn main() -> io::Result<()> { std::io::stdout().flush()?; } - crate::kitty_graphics::clear_all_host_graphics()?; + if crate::kitty_graphics::is_enabled() { + crate::kitty_graphics::clear_all_host_graphics()?; + } execute!( io::stdout(), PopKeyboardEnhancementFlags, |
