Skip to content

OSC 52 clipboard write โ€‹

Category: extensions ยท Tags: Xterm ext ยท Specification โ†—

OSC 52 clipboard write sets the system clipboard content. The sequence ESC ] 52 ; c ; base64-data BEL sets the clipboard to the decoded base64 content. Most modern terminals support clipboard write, though some require explicit opt-in for security (e.g., iTerm2 prompts the user). Write-only support is more common than read support โ€” many terminals allow setting the clipboard but block reading it back to prevent clipboard snooping by malicious programs.
How this is tested: Send OSC 52;c;base64-data BEL and verify the terminal remains responsive.
Analysis2026-03-29

Supported by all 8 tested terminals โ€” universal adoption. Part of the Modern TUI baseline.

Supported by 10 of 18 backends (56%)

Terminal Applications โ€‹

TerminalVersionSupportNotes
iTerm23.6.9โœ“ yes
cmuxโœ“ yes
Ghostty1.3.1โœ“ yes
Kitty0.46.2โœ“ yes
VS Code1.113.0โœ“ yes
Warp0.2026.03.18.08.24.03โœ“ yes
Cursor2.6.21โœ“ yes
Terminal.app2.15โœ“ yes

Headless Backends โ€‹

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

BackendVersionSupportNotes
Alacritty0.26.0? unknown
vt100.js0.2.1? unknown
vterm0.2.0? unknown
WezTerm0.1.0-fork.5? unknown
xterm.js5.5.0? unknown
xterm.js6.0.0? unknown
xterm.js5.4.0? unknown
xterm.js6.1.0-beta.195? unknown

Powered by Termless
Playwright for Terminals