Skip to content

Desktop Notifications (OSC 9/777) โ€‹

Category: extensions ยท Tags: Operating System Commands (OSC)

Desktop notifications allow terminal applications to trigger system notifications. Two competing escape sequences exist: OSC 9 (iTerm2/ConEmu) sends a simple notification string, while OSC 777 (rxvt-unicode) supports structured notifications with title and body. Neither is standardized โ€” support varies widely across terminals.

Common use case: long-running commands that notify when complete. Shells like zsh have plugins that automatically send a notification when a command takes longer than N seconds. The BEL character (0x07) is a simpler alternative โ€” most terminals can be configured to show a visual bell or system notification on BEL.

How this is tested: Send OSC 9 ; message BEL and verify the terminal accepts the notification sequence.
Analysis2026-03-26

Supported by 7 of 8 terminals (88%). Not supported by: Cursor. Part of the Rich TUI baseline.

Supported by 10 of 13 backends (77%)

Terminal Applications โ€‹

TerminalVersionSupportNotes
iTerm23.6.9โœ“ yes
Ghostty1.3.1โœ“ yes
VS Code1.112.0โœ“ yes
Warp0.2026.03.18.08.24.03โœ“ yes
Cursor2.6.21โœ“ yes
tmux3.6aโœ“ yes
Kitty0.46.2โœ“ yesOSC 9 notifications not exposed via Python batch bridge
Terminal.app2.15โœ“ yes
GNU Screen5.0.1โœ“ yes

Headless Backends โ€‹

Parser correctness only โ€” a โœ“ means the parser accepts the sequence.

BackendVersionSupportNotes
vterm0.2.0โœ“ yes
Alacritty0.26.0~ partialOSC 9 notifications not exposed via alacritty_terminal API
WezTerm0.1.0-fork.5~ partialOSC 9 notifications not exposed via wezterm-term API
vt1000.2.1โœ— noNot implemented โ€” pure TypeScript emulator

Powered by Termless
Playwright for Terminals