Skip to content

Add setting to allow apps to set the clipboard (OSC 52) - #967

Open
kynrek wants to merge 1 commit into
Swordfish90:masterfrom
kynrek:osc52-pr
Open

Add setting to allow apps to set the clipboard (OSC 52)#967
kynrek wants to merge 1 commit into
Swordfish90:masterfrom
kynrek:osc52-pr

Conversation

@kynrek

@kynrek kynrek commented Jul 31, 2026

Copy link
Copy Markdown

Summary

Adds an "Allow apps to set clipboard (OSC 52)" checkbox under Settings → Advanced → Miscellaneous (enabled by default). It binds to the terminal's clipboardWriteAllowed property so remote applications (e.g. tmux with set-clipboard on) can copy to the local clipboard over SSH. Unchecking it restores the previous behaviour. The setting is persisted alongside the other application settings.

Depends on

qmltermwidget PR: Swordfish90/qmltermwidget#53

That PR implements OSC 52 handling and exposes the clipboardWriteAllowed property this checkbox binds to. This PR intentionally does not bump the qmltermwidget submodule pointer — that bump should happen once the companion PR merges, so the pointer references an upstream commit. Until then the QML change is inert (the property simply has no effect).

Testing

Built on macOS (Qt 6) with the companion qmltermwidget change: the checkbox appears in Advanced → Miscellaneous, defaults to on, persists across restarts, and toggling it enables/disables OSC 52 clipboard writes live.

Add an 'Allow apps to set clipboard (OSC 52)' checkbox under
Settings -> Advanced -> Miscellaneous (enabled by default). It binds to the
terminal's clipboardWriteAllowed property so remote applications (e.g. tmux
with 'set-clipboard on') can copy to the local clipboard over SSH. Unchecking
it restores the previous behaviour. The setting is persisted like the other
application settings.

Depends on the corresponding qmltermwidget change that implements OSC 52 and
exposes the clipboardWriteAllowed property; the submodule pointer should be
bumped once that lands.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant