You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement stateful XTSMGRAPHICS (CSI ? Pi ; Pa ; Pv S) color and geometry registers #28
For 0.1.0, Terminal replies to XTSMGRAPHICS (CSI ? Pi ; Pa ; Pv S) with non-blocking error status CSI ? Pi ; 3 S so SIXEL-probing applications never stall waiting for a sentinel. Full stateful XTSMGRAPHICS register read/set/reset/max emulation is deferred to 0.2.0.
Motivation
Applications using libsixel, chafa, mpv --vo=sixel, and lsix send CSI ? 1 ; 1 ; 0 S (read number of color registers) and CSI ? 2 ; 1 ; 0 S (read SIXEL graphics geometry) or Pa = 2/3/4 (reset/set/read-maximum) to size palettes and raster dimensions before emitting DCS ... q payloads.
Proposal
Invariants
The invariants below are load-bearing; everything under Intent is open.
XTSMGRAPHICS replies remain gated by Policy / Profile (sixel capability) and bounded by Limits.max_image_dimension and Limits.max_reply_bytes.
Color-register (Pi = 1) and SIXEL geometry (Pi = 2) queries never report dimensions exceeding Limits.max_image_dimension.
Intent (non-binding)
Target 0.2.0: add configurable sixel_color_registers (default 256, max 1024) and SIXEL pixel geometry reporting/clamping on Profile / GraphicsTracker for Pi in (1, 2) and Pa in (1, 2, 3, 4), returning �[?{Pi};0;{Pv}S on success and �[?{Pi};3S for unsupported items.
Not doing
Pixel-buffer color quantization in libvt (which tracks sans-I/O metadata and footprints rather than rasterizing RGBA bitmaps).
Activity