Skip to content

clipboard: add tmux transport mode - #1215

Closed
simonklee wants to merge 1 commit into
mainfrom
ot-feat-set-clipboard
Closed

simonklee wants to merge 1 commit into
mainfrom
ot-feat-set-clipboard

Conversation

@simonklee

Copy link
Copy Markdown
Member

Let users choose how OpenTUI sends OSC 52 through tmux. Setups that disable passthrough can use tmux set-clipboard, and locked-down sessions can disable clipboard output instead of emitting unsupported escapes.

Let users choose how OpenTUI sends OSC 52 through tmux. Setups that
disable passthrough can use tmux set-clipboard, and locked-down sessions
can disable clipboard output instead of emitting unsupported escapes.
@simonklee
simonklee force-pushed the ot-feat-set-clipboard branch from 55c0a5c to c07306d Compare August 4, 2026 21:22

@ayubun ayubun left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i still believe just sending the regular osc52 sequence as i proposed resolves this: anomalyco/opencode#30472

but if you insist on making this a config, i'd settle for raw being the default

if (std.mem.eql(u8, value, "off")) return .off;
}
}
return .passthrough;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i feel as though defaulting to passthrough is a bit of a crime, given the tmux maintainer said it is not required: tmux/tmux#4214 (comment)
and tmux's own wiki documents using set-clipboard on: https://github.com/tmux/tmux/wiki/Clipboard

i would prefer this config to default to raw

@simonklee simonklee closed this Aug 18, 2026
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.

2 participants