简体   繁体   中英

How to copy from tmux with the mouse, to the OSX clipboard

I connect to a remote server with VS Code through ssh, using https://code.visualstudio.com/docs/remote/ssh . I open a Terminal window in VS code. Using the mouse to copy text to the OSX clipboard works nicely here: I can select text with the mouse in this terminal window, copy it with + C and paste it in any other OSX application with + V . However, I need to run tmux on the remote server. Once I start tmux, I can select text with the mouse (it briefly flashes yellow) but I cannot paste it anywhere else. How can I fix this?

You should be able to select text with the mouse while you keep the Option key pressed.

You may want to enable mouse support in your tmux config for some additional integrations:

set -g mouse on

These are covered in tmux's manual

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM