![]() |
libghostty
|
#include <ghostty/vt/terminal.h>
Data Fields | |
| bool | truncated |
| GhosttyString | content |
| GhosttyOscTerminator | terminator |
An OSC sequence whose number libghostty-vt does not implement.
OSC sequences start with ESC ], followed by a number that identifies the command, usually a ;, and then the command's data. The sequence ends with either BEL or ESC followed by a backslash. For example, a program might write:
For that sequence, content is 7400;status=busy and terminator is GHOSTTY_OSC_TERMINATOR_BEL. See the Unsupported Sequences section of the terminal documentation for a complete example.
Definition at line 593 of file terminal.h.
| GhosttyString content |
Everything between ESC ] and the terminator, including the number at the start. The bytes are not null-terminated and are only valid until the callback returns. Copy them if you need them later.
Definition at line 607 of file terminal.h.
| GhosttyOscTerminator terminator |
How the program ended the sequence. If you send a reply, end it the same way.
Definition at line 613 of file terminal.h.
| bool truncated |
True if the sequence was longer than GHOSTTY_TERMINAL_OPT_UNKNOWN_MAX_BYTES, or memory ran out while reading it. In that case content holds only the beginning of the sequence.
Definition at line 600 of file terminal.h.