^[control-codes
live in libghostty-vt

Operating system commands

OSC 62 Query Allowable Features

View as Markdown

Ask xterm what all the parts of one of its guarded features are.

OSC 62 ; Pt ST
ECMA-48
§8.3.89 OSC – Operating System Command, p. 51
xterm
Operating System Commands

XTQALLOWABLE, OSC 62 ; resource ST, asks xterm for every part of one of its guarded features, whether refused or not, so that a program can make sense of what OSC 61 reports. resource is one of the names OSC 60 can report, and the answer is OSC 62 ; list ST, the parts by name, separated by commas (unparse_allowable_ops). For allowTcapOps, the termcap queries, those are SetTcap and GetTcap, XTSETTCAP and XTGETTCAP. The case follows a default xterm.

This is xterm’s own, and libghostty-vt does not have it, so the case is a known difference.

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-411aYes
libghostty-vt0f171f6NoOSC62-1: not implemented
Konsole26.11.70, a24c3d71No
ConEmubuild 230724, its documentationNonot in ConEmu’s list, ANSI escape codes

Validation

OSC62-1: All the termcap operations

\e]62;allowTcapOps\a
|______|
reply \e]62;SetTcap,GetTcap\a
Every example on these pages runs in your browser, in libghostty-vt compiled to WebAssembly.