Apple’s Worldwide Developers Conference to kick off June 10 at 10 a.m. PDT with Keynote address

The Keynote will be available to stream on apple.com, the Apple Developer app, the Apple TV app, and the Apple YouTube channel. On-demand playback will be available after the conclusion of the stream.

You can make a difference in the Apple Support Community!

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

Developer Forums relocated!

Need help with Apple Developer tools and technologies? Want to share information with other developers and Apple engineers? Visit Developer Forums at Apple.

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 Best 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 Best 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 ID.