Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using GNU Screen on Terminal. Is there a way to use what I copied in GNU Screen into OS X's clipboard? I'm running

  • Mac OS X 10.6.2
  • Screen version 4.00.03 (FAU) 23-Oct-06

Edit: I was thinking about how to pass the content that is copied in copy mode in Screen to pbcopy.

share|improve this question
up vote 2 down vote accepted

You can use the writebuf screen command to write the buffer out to a file, then use e.g. pbcopy < /tmp/bufferfile.

share|improve this answer

I'm edit copy mode bindings to to copy paste buffer contents into OS X clipboard automatically.

# copy the screen pastbuffer to the MacOSX pastebord
bufferfile screen/screen-exchange
bindkey -m ' ' eval 'stuff \040' 'writebuf' 'exec sh -c "/usr/bin/pbcopy < screen/screen-exchange"'
bindkey -m Y   eval 'stuff Y'    'writebuf' 'exec sh -c "/usr/bin/pbcopy < screen/screen-exchange"'
bindkey -m W   eval 'stuff W'    'writebuf' 'exec sh -c "/usr/bin/pbcopy < screen/screen-exchange"'
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.