Expand description
Window title and icon-name OSC sequences.
§Category
OSC 0, OSC 1, and OSC 2 update the terminal window title and/or icon name.
§OSC framing
Writers use the 7-bit OSC introducer and ST terminator (ESC \\):
ESC ] <code> ; <text> ESC \\.
§Mode interaction
Title controls are not gated by an ANSI/DEC mode. The payload is emitted verbatim, so callers should avoid embedding string terminators in the text.
Functions§
- write_
icon_ name - Set the icon name with
ESC ] 1 ; <name> ESC \. - write_
window_ title - Set window title (OSC 2).
- write_
window_ title_ and_ icon - Set the window title and icon name with
ESC ] 0 ; <title> ESC \.