tui: image rendering — protocol auto-detection at startup #15
Labels
No labels
area:agents
area:ai
area:config
area:dashboard
area:design
area:design-review
area:devtools
area:entities
area:gallery
area:generate
area:image
area:infra
area:meta
area:model-browser
area:navigation
area:presets
area:security
area:sessions
area:settings
area:sharing
area:test
area:ux
area:webhook
area:workdir
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/loom#15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
User story
As a user launching loom-tui in any terminal, I want the best available image protocol chosen automatically, so that I never have to configure rendering manually.
Acceptance criteria
Detection order
$TERM == xterm-kitty,$TERM_PROGRAM == kitty, or a successful APC query (\x1b_Gi=31,s=1,v=1,a=q,t=d,f=24;AAAA\x1b\\) within a 200 ms timeout\x1b[c(DA1), parse response, require attribute4to be present, 200 ms timeoutwhich chafasucceedsAPI
loom_tui::image::detect_renderer() -> Box<dyn ImageRenderer>implements the ordered probe[tui] image_protocolconfig override (auto,kitty,sixel,chafa,halfblock,none);nonedisables image rendering entirely, returning a no-op rendererinfoand displayed in the Settings → Appearance sectionTests
Out of scope
tui.tomlconfig file loading (separate ticket — consumes this API)References
image_protocolconfig key