Prevent page clear/show flash on kitty when pages have been cleared from memory. (#148)

* wip; start working on making it not flash when transferring new images

* don't delete the images, just clear them

* add changelog entry

* fmt
This commit is contained in:
June
2026-04-24 09:56:19 -05:00
committed by GitHub
parent 421401c7a7
commit 5e4fbff9cd
5 changed files with 57 additions and 42 deletions
+4 -1
View File
@@ -390,6 +390,8 @@ async fn enter_redraw_loop(
mut main_area: tdf::tui::RenderLayout,
font_size: FontSize
) -> Result<(), Box<dyn Error>> {
let mut kitty_z_idx = i32::MIN;
loop {
let mut needs_redraw = true;
let next_ev = ev_stream.next().fuse();
@@ -462,7 +464,8 @@ async fn enter_redraw_loop(
to_display = tui.render(f, &main_area, font_size);
})?;
let maybe_err = display_kitty_images(to_display, &mut ev_stream).await;
let maybe_err =
display_kitty_images(to_display, &mut ev_stream, &mut kitty_z_idx).await;
if let Err(DisplayErr {
failed_pages,