diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-13 14:14:40 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-13 14:15:26 +0300 |
| commit | 4600309051e5d6bea1f64e72cec585b102117ce5 (patch) | |
| tree | 8ca78803bbef8453bdd2d9a0de312201cd0ee60d /src/main.rs | |
| parent | fb9aff54087aa8a606e9260a689986d2bd76f5fa (diff) | |
feat: support kitty graphics in attached clients
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 18e6138a..d2dfedd9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -156,6 +156,9 @@ const DEFAULT_CONFIG: &str = r##"# herdr configuration [advanced] # Allow launching herdr from inside a herdr-managed pane. # allow_nested = false +# Experimental local Kitty graphics rendering for attached clients. +# Requires a Kitty graphics-compatible outer terminal. Detach/headless replay is not supported yet. +# kitty_graphics = false # Maximum scrollback buffer size in bytes retained per pane terminal. # Matches Ghostty's default scrollback-limit behavior. # scrollback_limit_bytes = 10000000 @@ -424,6 +427,7 @@ 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(); let _ = execute!( io::stdout(), PopKeyboardEnhancementFlags, @@ -486,6 +490,7 @@ fn main() -> io::Result<()> { std::io::stdout().flush()?; } + crate::kitty_graphics::clear_all_host_graphics()?; execute!( io::stdout(), PopKeyboardEnhancementFlags, |
