GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||
GeezerVison is showing github.com — fix(clipboard): improve OSC 52 escape sequence for SSH compatibility by Son0fSun · Pull Request #9008 · anomalyco/opencode Conversation
|
| Environment | Status |
|---|---|
| iTerm2 | ✅ |
| Kitty | ✅ |
| Alacritty | ✅ |
| Windows Terminal | ✅ |
| tmux | ✅ |
| Nested tmux | ✅ |
| GNU Screen | ✅ |
🤖 Generated with Claude Code
Co-Authored-By: Claude Opus 4.5 [email protected]
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Fix clipboard operations not working over SSH by improving the OSC 52 escape sequence implementation with proper terminal multiplexer support. ## Problems Fixed 1. **BEL vs ST terminator**: Changed from BEL (\x07) to ST (\x1b\\) for better compatibility. Some terminals don't handle BEL correctly inside DCS passthrough sequences. 2. **GNU Screen passthrough**: Fixed incorrect format - Screen uses DCS without the `tmux;` prefix that was being applied to both. - Before: `\x1bPtmux;\x1b<seq>\x1b\\` (wrong for Screen) - After: `\x1bP<seq>\x1b\\` (correct for Screen) 3. **Nested tmux sessions**: Added detection of tmux nesting level via comma count in TMUX env var, doubling escapes for each level. ## Technical Details OSC 52 format: ESC ] 52 ; c ; <base64> ST Passthrough wrapping: - tmux: `ESC P tmux; ESC ESC <seq> ESC \` - screen: `ESC P ESC ESC <seq> ESC \` The escape characters must be doubled inside DCS sequences so they pass through to the outer terminal emulator. ## Supported Terminals - iTerm2, Kitty, Alacritty, Windows Terminal - tmux (including nested sessions) - GNU Screen - Most modern terminal emulators Fixes: anomalyco#6111 Fixes: anomalyco#2773 Co-Authored-By: Claude Opus 4.5 <[email protected]>
|
The following comment was made by an LLM, it may be inaccurate: Based on my search, I found one potentially related PR: PR #7028: fix(clipboard): add OSC 52 fallback for SSH/tmux environments This PR appears to address similar issues with OSC 52 clipboard functionality in SSH and tmux environments. You should check if this PR was already merged or if it's still open, as it may cover some or all of the same fixes being proposed in PR #9008. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
this should be resolved in by #8974 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Can we just get an option to disable the clipboard outright so that we can use the normal right click copy and paste? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
that was built -> OPENCODE_EXPERIMENTAL_DISABLE_COPY_ON_SELECT |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
00637c0 to
71e0ba2
Compare
f1ae801 to
08fa7f7
Compare
|
Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Copy to clipboard broken over SSH (MobaXterm & Windows Terminal) clipboard copy not works in remote SSH console.
There was an error while loading. Please reload this page.