Kitty graphics
Programs can show images with the
kitty graphics protocol, as in
Ghostty (ADR 0017): PNG, RGB and RGBA, zlib
compression, placement at a cell or relative to another image, scaling to cells,
cropping, z-order below the cell backgrounds, below the text or above it, Unicode
placeholders (U+10EEEE), deletes, and animation. Images scroll
with their text, stay with their screen (main or alternate) and are redrawn after a
resize. Ghostty's image-storage-limit (bytes per screen, default 320000000) caps the
memory; 0 turns the protocol off. Images can be sent inline, as a file, as a temporary
file (in %TMP%, named *tty-graphics-protocol*) or by shared memory, which on Windows
is a named file mapping (CreateFileMappingW), as in WezTerm.
Where images work:
| Backend | Images | Why |
|---|---|---|
| Windows 10+, bundled ConPTY (default) | yes | OpenConsole 1.25 passes APC through |
Windows 10+, v7-conpty = system | no | inbox conhost has no APC parser: it prints the data as text and answers no query |
Windows 7, x64 programs that write VT (checked: cmd's type and a native test tool) | yes | the hook streams their output to libghostty-vt |
Windows 7, programs the Scraper reads (32-bit, MSYS/Cygwin, v7-win7-vt = false) | no | only console cells reach Voyager7 |
A program detects support with a query (a=q): it gets an answer only where images
work. Try tests\visual\demo.bat kitty-graphics and kitty-animation, or Yazi's
preview on Windows 10.