osc: add option to disable OSC-52, partially or fully

Closes #1867
This commit is contained in:
Daniel Eklöf 2024-12-21 06:52:00 +01:00
parent 67bd5dd460
commit e38ec79be1
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
7 changed files with 99 additions and 1 deletions

View file

@ -416,6 +416,33 @@ The format is simply:
Note: do not set *TERM* here; use the *term* option in the main
(default) section instead.
# SECTION: security
*osc52*
Whether OSC-52 (clipboard access) is enabled or disabled. One of
*disabled*, *copy-enabled*, *paste-enabled* or *enabled*.
OSC-52 gives terminal application access to the host clipboard
(i.e. the Wayland clipboard). This is normally not a security
issue, since all applications can access the clipboard directly
over the Wayland socket.
However, when SSH:ing into a remote system, or accessing a
container etc, the terminal applications may be untrusted, and you
might consider disabling the host clipboard access.
- *disabled*: disables all clipboard access
- *copy-enabled*: applications can write to the clipboard, but not
read from it.
- *paste-enabled*: applications can read from the clipboard, but
not write to it.
- *enabled*: all applications have full access to the host
clipboard. This is the default.
Default: _enabled_
# SECTION: bell
*urgent*