Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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:

BackendImagesWhy
Windows 10+, bundled ConPTY (default)yesOpenConsole 1.25 passes APC through
Windows 10+, v7-conpty = systemnoinbox 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)yesthe hook streams their output to libghostty-vt
Windows 7, programs the Scraper reads (32-bit, MSYS/Cygwin, v7-win7-vt = false)noonly 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.