XTerm paste from clipboard
Posted Mar 7 2012, 14:49 by William Shallum [updated Apr 16 2013, 23:44]
XTerm pastes from the PRIMARY selection by default. To make it paste from clipboard on shift-insert and use shift-btn up to copy to clipboard:
xterm.VT100.Translations: #override \n\
Shift <KeyPress> Insert: insert-selection(CLIPBOARD) \n\
<Btn2Up>: insert-selection(SELECT, CUT_BUFFER0) \n\
~Shift<BtnUp>: select-end(PRIMARY, CUT_BUFFER0) \n\
Shift<BtnUp>: select-end(CLIPBOARD, CUT_BUFFER1)
Put in your .Xresources (or .Xdefaults). Confused: Difference between .Xresources and .Xdefaults tl;dr: Xresources: new, sticks to server but must be loaded with xrdb, Xdefaults: old, loaded on the X client filesystem, not read if xrdb has been used.
PS: the program that can grab the hierarchy of Xt windows is editres