OSC 60 Query Allowed Features
Ask xterm which of its optional, security-sensitive features are allowed.
OSC 60 ST
Several of xterm’s features are switched on or off by resources, because they could be abused by anything written to the terminal: colors, fonts, the mouse, pasting controls, termcap queries, titles, and window operations. Each has an allow… resource, and a disallowed… list of the parts of it refused while the allow… resource is off. XTQALLOWED, OSC 60 ST, asks which allow… resources are on, and is answered OSC 60 ; list ST with their names separated by commas (report_allowed_ops). It takes no ; and nothing after it; with something there, it is ignored. OSC 61 asks which parts of a feature are refused, and OSC 62 which parts it has.
In a default xterm, allowColorOps, allowFontOps, allowMouseOps, allowTcapOps and allowTitleOps are on, and allowPasteControls and allowWindowOps off. The case follows it.
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 | OSC60-1: not implemented |
| Konsole | 26.11.70, a24c3d71 | No | |
| ConEmu | build 230724, its documentation | No | not in ConEmu’s list, ANSI escape codes |
Validation
OSC60-1: Which features are allowed
\e]60\a
|______|
reply \e]60;allowColorOps,allowFontOps,allowMouseOps,allowTcapOps,allowTitleOps\a