Skip to content

Cell Size Reporting (OSC 1337) โ€‹

Category: extensions ยท Tags: Operating System Commands (OSC), Iterm2

OSC 1337 ; ReportCellSize queries the terminal for the dimensions of a single character cell in pixels. The response is OSC 1337 ; ReportCellSize=height;width ST. This is essential for pixel-accurate image rendering protocols (sixel, iTerm2 inline images, kitty graphics) where applications need to know the exact pixel dimensions of cells to scale images correctly.
How this is tested: Send OSC 1337 ; ReportCellSize, verify the terminal responds with pixel dimensions.
Analysis2026-03-26

Supported by 1 of 4 terminals (25%). Not supported by: Ghostty, Kitty, Terminal.app. Part of the Rich TUI baseline.

Supported by 1 of 11 backends (9%)

Terminal Applications โ€‹

TerminalVersionSupportNotes
iTerm23.6.9โœ“ yes
Ghostty1.3.1โœ— noNo OSC 1337 ReportCellSize response
VS Code1.112.0โœ— noNo OSC 1337 ReportCellSize response
Warp0.2026.03.18.08.24.03โœ— noNo OSC 1337 ReportCellSize response
Cursor2.6.21โœ— noNo OSC 1337 ReportCellSize response
Kitty0.46.2โœ— noNo OSC 1337 ReportCellSize response
Terminal.app2.15โœ— noNo OSC 1337 ReportCellSize response

Headless Backends โ€‹

Parser correctness only โ€” a โœ“ means the parser accepts the sequence.

BackendVersionSupportNotes
Alacritty0.26.0? unknown
vt1000.2.1? unknown
vterm0.2.0? unknown
WezTerm0.1.0-fork.5? unknown

Powered by Termless
Playwright for Terminals