Repository navigation
Commit 01e4ebe
fix(clipboard): write OSC52 to /dev/tty instead of stdout
Fixes clipboard copy failing in terminal multiplexers like Zellij,
tmux, and screen. These tools intercept OSC52 escape sequences written
to stdout but do not forward them to the outer terminal.
Writing to /dev/tty (or SSH_TTY when connected via SSH) bypasses the
multiplexer's PTY layer and sends OSC52 directly to the terminal
emulator. Falls back to stdout if /dev/tty is unavailable (e.g., on
Windows).
Fixes anomalyco#12082
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent af06175 commit 01e4ebe
1 file changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
19 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
20 | 35 | | |
21 | 36 | | |
22 | 37 | | |
| |||
0 commit comments