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
| Terminal | Version | Support | Notes |
|---|---|---|---|
| VT220 | manual, 2nd ed., 1984 | No | OSC is not among the controls it recognizes (§4.2) |
| VT510 | manual, 1st ed., 1993 | No | ignores an OSC string (chapter 4) |
| xterm | patch 412, xterm-411a | No | ignored |
| libghostty-vt | 83edd49 | No | ignored |
| Konsole | 26.11.70, a24c3d71 | No | not among the OSC numbers it handles (Vt102Emulation.h) |
| ConEmu | build 230724, its documentation | No | not in its ANSI escape codes |
| rxvt-unicode | 9.31, urxvtperl(3) | Yes | from 9.29 (urxvt(7)) |
Validation
OSC776-1: Not answered
\e]776;?\a
|______|
reply none