OSC 62 Query Allowable Features
Ask xterm what all the parts of one of its guarded features are.
OSC 62 ; Pt ST
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
| 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 | Yes | |
| libghostty-vt | 0f171f6 | No | OSC62-1: not implemented |
| Konsole | 26.11.70, a24c3d71 | No | |
| ConEmu | build 230724, its documentation | No | not in ConEmu’s list, ANSI escape codes |
Validation
OSC62-1: All the termcap operations
\e]62;allowTcapOps\a
|______|
reply \e]62;SetTcap,GetTcap\a