Skip to content

OSC 5522 advanced clipboard โ€‹

Category: extensions ยท Tags: Kitty ยท Specification โ†—

OSC 5522 is the Kitty advanced clipboard protocol, extending OSC 52 with MIME type support, rich content handling, and authorization tokens. When mode 5522 is enabled, bracketed paste is replaced with MIME-aware paste events that include content type metadata. Unlike OSC 52 which only handles plain text base64 data, OSC 5522 supports multiple MIME types (text/plain, text/html, image/png, etc.) in a single clipboard operation, with pre-authorization tokens for secure paste handling. Currently supported by kitty, with Ghostty parsing but not yet fully implementing the protocol.
How this is tested: Query clipboard capabilities with OSC 5522;? BEL and check for response.
Analysis2026-03-26

Not supported by any tested terminal. Part of the Rich TUI baseline.

Supported by 0 of 18 backends (0%)

Terminal Applications โ€‹

TerminalVersionSupportNotes
cmuxโœ— noNo OSC 5522 response
iTerm23.6.9? unknown
Ghostty1.3.1? unknown
VS Code1.112.0? unknown
Cursor2.6.21? unknown
Warp0.2026.03.18.08.24.03? unknown
Terminal.app2.15? unknown
Kitty0.46.2? unknownOSC 5522 not exposed via Python batch bridge

Headless Backends โ€‹

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

BackendVersionSupportNotes
Alacritty0.26.0โœ— noOSC 5522 not implemented in alacritty
vt100.js0.2.1โœ— noNot implemented โ€” pure TypeScript emulator
vterm0.2.0โœ— noOSC 5522 not implemented
WezTerm0.1.0-fork.5โœ— noOSC 5522 not implemented in wezterm
xterm.js5.5.0? unknownOSC 5522 not implemented in xterm.js
xterm.js6.0.0? unknownOSC 5522 not implemented in xterm.js
xterm.js5.4.0? unknownOSC 5522 not implemented in xterm.js
xterm.js6.1.0-beta.195? unknownOSC 5522 not implemented in xterm.js

Powered by Termless
Playwright for Terminals