^[control-codes live in libghostty-vt

Operating system commands

OSC 776 Report Cell Size

Ask rxvt-unicode for the size of a character cell and its font's ascent, in pixels.

OSC 776 ; ? ST
ECMA-48
§8.3.89 OSC – Operating System Command, p. 51
Specification
urxvt(7), XTerm Operating System Commands

OSC 776 ; ? ST asks rxvt-unicode, from 9.29, for the size of one character cell in pixels and its font’s ascent. It answers OSC 776 ; width ; height ; ascent, ended the way the request was, so that a program driving the terminal can work out the window’s size from its rows and columns (urxvt(7)). The manual does not show the ?, but rxvt-unicode’s source answers only that. xterm’s way to ask the same is CSI 16 t, among the reports of XTWINOPS.

A default xterm has no OSC 776 and ignores it (the OSC numbers it knows). The cases follow xterm.

libghostty-vt does not recognize OSC 776 either: its OSC parser in osc.zig has no state for the number, so the string is dropped, and the cases pass.

Support

TerminalVersionSupportNotes
VT220manual, 2nd ed., 1984NoOSC is not among the controls it recognizes (§4.2)
VT510manual, 1st ed., 1993Noignores an OSC string (chapter 4)
xtermpatch 412, xterm-411aNoignored
libghostty-vt83edd49Noignored
Konsole26.11.70, a24c3d71Nonot among the OSC numbers it handles (Vt102Emulation.h)
ConEmubuild 230724, its documentationNonot in its ANSI escape codes
rxvt-unicode9.31, urxvtperl(3)Yesfrom 9.29 (urxvt(7))

Validation

OSC776-1: Not answered

\e]776;?\a
|______|
reply none
Every example on these pages runs in your browser, in libghostty-vt compiled to WebAssembly.