Repository navigation
v0.19.1
Correction — the terminal's identity is queryable; only the placeholder capability isn't
0.18.3–0.19.0 said real pixels "cannot be detected at runtime" and called terminal allowlists fragile. Half of that was wrong.
Still true: there is no query for "do placeholders actually draw". The Kitty graphics query answers OK for mere transmission support — measured on the same WezTerm that garbles placeholders:
ESC _G i=31,s=1,v=1,a=q,t=d,f=24;AAAA ESC \ -> ESC _G i=31;OK ESC \
…which is exactly why tgp.query_terminal_support() false-positives there.
Wrong: that identifying the terminal is a fragile TERM guess. XTVERSION is answered by the terminal itself — measured on a WezTerm whose TERM was plain xterm-256color:
ESC [ > q -> ESC P >| WezTerm 20240203-110809-5046fc22 ESC \
So an opt-in allowlist for known-good terminals is a maintained list, not a fragile heuristic — though it is still a list someone has to keep, and unknown terminals must fall back anyway. Half-blocks remain the zero-maintenance default.
Also — honest wording about half-block quality
Earlier text ("looks fine", "smooth gradients") overstated it. One cell carries two pixels, so it is visibly chunky: blocky edges, banding, and small detail (faces, text in a screenshot, thin lines) is lost. It is a recognisable low-res preview, not a faithful picture. If faithful images are a requirement, a cell-painting widget is the wrong tool.
Full Changelog: v0.19.0...v0.19.1