From 4600309051e5d6bea1f64e72cec585b102117ce5 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Wed, 13 May 2026 14:14:40 +0300 Subject: feat: support kitty graphics in attached clients --- src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main.rs') 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, -- cgit v1.2.3