Repository navigation
libghostty-vt: clearing scrollback makes historical Kitty images reappear at the top-left #14830
Issue DescriptionI first encountered this while using Pi inside Herdr with a session containing images. After exiting Pi with I used Pi to help investigate terminal image handling. That investigation helped me produced the a corresponding image-placement failure through the public C API on unmodified upstream The reproduction does not require Pi, Herdr, a GUI, PNG decoding or image files. Separate tests in my installed Ghostty 1.3.1+omarchy.3 stable application did not reproduce the symptom, including synthetic Pi image-session exit/clear tests. This report concerns the libghostty-vt: library. Expected BehaviorClearing the visible display and scrollback once should not make an image from the discarded history visible again. A second clear should not be necessary. Screen-only clearing should preserve images wholly in retained scrollback; subsequently discarding that history should not relocate those images onto unrelated visible rows. Actual BehaviorAfter Repeating the complete Reproduction StepsThe attached
From a Ghostty checkout at REPRO=/repro.c
PREFIX=/tmp/ghostty-image-clear-prefix
zig build --prefix "$PREFIX" \
-Demit-lib-vt \
-Demit-xcframework=false \
-Doptimize=ReleaseFast -j2
cc -std=c11 -Wall -Wextra -Werror \
-I "$PREFIX/include" "$REPRO" \
-L "$PREFIX/lib" -Wl,-rpath,"$PREFIX/lib" \
-lghostty-vt -o /tmp/ghostty-image-clear-repro
/tmp/ghostty-image-clear-reproThe program The repro.c file Ghostty LogsGhostty VersionOS Version InformationOmarchy 4.0.6 (Arch Linux) (Linux only) Display ServerWayland (Linux only) Desktop Environment/Window ManagerNot required for the headless C reproduction. Separate GUI controls used Wayland/Hyprland. Minimal Ghostty ConfigurationNone. The C reproduction does not load a Ghostty application configuration.Additional Relevant ConfigurationThe original user-visible symptom occurred with Herdr 0.9.5 stable and Pi 1.4.0. Important AI Disclosure I acknowledge that:
|
#14831