onPrivateOSC property

void Function(String code, List<String> args)? onPrivateOSC
getter/setter pair

The callback that is called when the terminal receives a unrecognized escape sequence.

Only OSC sequences libghostty-vt does not implement reach it (OSC 66, for instance, is Kitty's text sizing protocol there); the content is split at ; into the code and its arguments, as in xterm.

Implementation

void Function(String code, List<String> args)? onPrivateOSC;