Back to Ghostty Org

Change Window Title (OSC 2)

docs/vt/osc/2.mdx

latest348 B
Original Source

<VTSequence sequence={["OSC", "2", ";", "Pt", "ST"]} />

Change the window title to t.

While xterm defaults to interpreting t as a ISO-8859-1-encoded string, which can be changed via Set Title Mode (XTSMTITLE) to either accept a hexadecimal-escaped or bare UTF-8 string, Ghostty always unconditionally expects t to be directly UTF-8-encoded.