Skip to main content

Module title

Module title 

Source
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 \.