zellij-org / zellij

A terminal workspace with batteries included
https://zellij.dev
MIT License
21.19k stars 643 forks source link

macos terminal copy text didn't actually copied data to clipboard #1662

Closed lucasjinreal closed 2 years ago

lucasjinreal commented 2 years ago

macos terminal copy text didn't actually copied data to clipboard

imsnif commented 2 years ago

Hey @jinfagang - I think the macos terminal doesn't support OSC52, which is the method we use in order to tell it to copy to your clipboard.

There's a workaround you can use which is to use an external command in order to copy. You'll need to install the relevant command for your mac (I think for macos it's pbcopy) and then adjust the Zellij config.

More info here: https://zellij.dev/documentation/options.html (look under copy-command).

zuisong commented 2 years ago

嘿@jinfagang- 我认为macos终端不支持OSC52,这是我们用来告诉它复制到剪贴板的方法。

您可以使用一种解决方法,即使用外部命令进行复制。您需要为您的 mac 安装相关命令(我认为对于 macos 它是pbcopy),然后调整 Zellij 配置。

更多信息在这里:zellij.dev/documentation/options.html(在下面查看copy-command)。

It works for me, thanks. :smile:

imsnif commented 2 years ago

@jinfagang can we close this?

lucasjinreal commented 2 years ago

sure