Skip to content

Window title (OSC 2)

Category: extensions · Tags: Operating System Commands (OSC), Xterm Extensions · Specification ↗

OSC 2 sets the terminal window title. The sequence is ESC ] 2 ; title ST where ST is the string terminator (ESC \ or BEL). Used by shells to display the current directory or running command in the window title bar or tab header.

Supported by 5 of 6 backends (83%)

Support Matrix

BackendVersionSupportNotes
Alacritty0.26.0✓ yes
Kitty0.40.0✓ yes
vt1000.1.0✓ yes
WezTerm0.1.0-fork.5✓ yes
xterm.js5.5.0✓ yes
Ghostty1.3.1~ partialTitle not exposed via native Zig API

Powered by Termless
Playwright for Terminals