You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How can I paste in a terminal window in XQuartz?

I am using XQuartz as a Unix terminal on my MacBook Pro, together with a standard Apple Magic Mouse. Unix requires a 3rd ("middle") mouse button to paste something into a terminal window. Is there some way to emulate this? Right now, I can use "copy" in XQuartz to copy from an xterm window into the Mac clipboard, but there is no "paste" command to put something on the command line. Any advice?

MacBook Air 13″, macOS 10.15

Posted on Jul 30, 2020 12:51 PM

Reply
Question marked as Top-ranking reply

Posted on Jul 30, 2020 2:57 PM

On the XQuartz Preferences Panel:


  1. Input tab
    1. [√] Emulate three button mouse
      1. Use option key and left mouse button to paste from macOS clipboard
    2. Enable key equivalents under X11
  2. Pasteboard tab
    1. Enable Syncing
    2. Update CLIPBOARD when Pasteboard changes
    3. Update PRIMARY (middle-click) when Pasteboard changes
    4. Update Pasteboard immediately when new text is selected


With these settings, I can copy and paste to the macOS Mojave clipboard, and using option+left-click, the contents of the clipboard will paste into an xterm. I am using an Apple Magic Mouse 2.

Similar questions

2 replies
Question marked as Top-ranking reply

Jul 30, 2020 2:57 PM in response to Sebastian Kuhn

On the XQuartz Preferences Panel:


  1. Input tab
    1. [√] Emulate three button mouse
      1. Use option key and left mouse button to paste from macOS clipboard
    2. Enable key equivalents under X11
  2. Pasteboard tab
    1. Enable Syncing
    2. Update CLIPBOARD when Pasteboard changes
    3. Update PRIMARY (middle-click) when Pasteboard changes
    4. Update Pasteboard immediately when new text is selected


With these settings, I can copy and paste to the macOS Mojave clipboard, and using option+left-click, the contents of the clipboard will paste into an xterm. I am using an Apple Magic Mouse 2.

How can I paste in a terminal window in XQuartz?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.