Documenting Problems That Were Difficult To Find The Answer To

Clipboard Cut and Paste Like Putty in XTerm

Do you want to select by click-and-holding the left-mouse button and having that text automatically copied into the system-wide clipboard? And then copying from the system-wide clipboard by right-clicking on the mouse?

In ~/.Xresources add:

XTerm*selectToClipboard: true

XTerm.vt100.translations: #override \
  ~Meta <Btn3Down> : insert-selection(CLIPBOARD,CUT_BUFFER0) \n\

Then, to load these changes, run:

xrdb ~/.Xresources

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: