Appearance
OSC 5522 advanced clipboard โ
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.
Analysis2026-03-26
Not supported by any tested terminal. Part of the Rich TUI baseline.
Supported by 0 of 18 backends (0%)
Terminal Applications โ
| Terminal | Version | Support | Notes |
|---|---|---|---|
| cmux | โ no | No OSC 5522 response | |
| iTerm2 | 3.6.9 | ? unknown | |
| Ghostty | 1.3.1 | ? unknown | |
| VS Code | 1.112.0 | ? unknown | |
| Cursor | 2.6.21 | ? unknown | |
| Warp | 0.2026.03.18.08.24.03 | ? unknown | |
| Terminal.app | 2.15 | ? unknown | |
| Kitty | 0.46.2 | ? unknown | OSC 5522 not exposed via Python batch bridge |
Headless Backends โ
Parser correctness only โ a โ means the parser accepts the sequence.
| Backend | Version | Support | Notes |
|---|---|---|---|
| Alacritty | 0.26.0 | โ no | OSC 5522 not implemented in alacritty |
| vt100.js | 0.2.1 | โ no | Not implemented โ pure TypeScript emulator |
| vterm | 0.2.0 | โ no | OSC 5522 not implemented |
| WezTerm | 0.1.0-fork.5 | โ no | OSC 5522 not implemented in wezterm |
| xterm.js | 5.5.0 | ? unknown | OSC 5522 not implemented in xterm.js |
| xterm.js | 6.0.0 | ? unknown | OSC 5522 not implemented in xterm.js |
| xterm.js | 5.4.0 | ? unknown | OSC 5522 not implemented in xterm.js |
| xterm.js | 6.1.0-beta.195 | ? unknown | OSC 5522 not implemented in xterm.js |