forked from gammons/slk
-
Notifications
You must be signed in to change notification settings - Fork 0
Clipboard and OSC 52
Toni Leino edited this page Jun 12, 2026
·
1 revision
slk writes the system clipboard via the OSC 52 escape. Most modern terminal emulators (alacritty, kitty, wezterm, foot, iterm2, recent gnome-terminal) accept these writes by default. A few need explicit opt-in.
-
tmux:
set -g set-clipboard onin your tmux config. - screen: has no working OSC 52 path; consider switching to tmux.
-
kitty (older versions):
clipboard_control write-clipboardinkitty.conf.
If Copied N chars shows in the status bar but nothing lands in your
clipboard, your terminal is silently dropping the OSC 52 write. There is no
reliable round-trip to detect this from inside slk — the protocol doesn't
acknowledge writes. Check your terminal's clipboard documentation for an
opt-in setting.
- Terminal Compatibility — per-terminal OSC 52 support summary
Getting started
Using slk
Reference