Graphics Protocols

All three inline-image protocols support both encoding (write to a terminal) and decoding (receive from a PTY). When kou's Screen encounters an inline-image escape sequence, it decodes the image and stores it; the renderer overlays each placement using contain-fit (aspect ratio preserved).
| Protocol | Direction | Format | Terminals |
|---|---|---|---|
| Kitty2 (APC) | Encode + Decode | base64 PNG | kitty, wezterm, Ghostty |
| iTerm2 (OSC 1337) | Encode + Decode | base64 PNG | iTerm2, wezterm |
| Sixel (DCS) | Encode + Decode | Raster language | xterm, mlterm, mintty |
Sixel encoding/decoding uses the icy_sixel crate (pure Rust, behind the sixel cargo feature).

Driving it
rust
1
2
3
4
5
6
7
8
9
10
11
use ;
let screen = mgr.screen.await?;
let fonts = load;
let theme = theme_by_name;
if let Some = render_graphics else