File: src/screen.zig:138 (cell_rows = (px_height+19)/20), src/screen.zig:139 (cell_cols = (px_width+9)/10), src/server/render.zig:209–210 (same in render clipping)
Severity: MEDIUM
Status: ✅ FIXED — Screen now carries cell_px_width/cell_px_height (default 10×20) used by addSixelImage and both render sites for pixel↔cell conversion, so non-default terminals no longer mis-anchor or mis-clip sixel. Added unit test.
The assumption “20px per cell row, 10px per cell column” is baked into both cursor advancement (addSixelImage) and the fits clipping test (renderSixelImages). Terminal cell metrics vary (common values are ~20px tall but width is font-dependent and often ≠ 10px; many terminals report e.g. 9×18 or 8×16). On any terminal that doesn’t match these constants, the image anchor and the fits boundary are computed against the wrong cell extent → sixel is mis-anchored or incorrectly clipped/hidden. This should be derived from the real terminal cell size (queryable via DECSLPP/font metrics) rather than hardcoded.