I was frustrated that selection buffer in Mac's OSX X11/XQuartz(2.7.0) xterm
and the aqua clipboard doesn't sync without manual use of the Edit/Copy menu.
I have menu shortcuts turned off in XQuartz so that Command becomes my xterm Meta key.
I found:
http://gigo.com/archives/blog/apples-x11app-and-xterm-copypa.html
which led me to setup my preferences and .Xresources file thusly:
My X11/XQuartz preferences:
Input tab:
• Enable "Emulate 3 button mouse "
• Disable "Follow system keyboard"
• Disable "Enable key equivalents under X11"
• Enable "Option keys send Alt_L and Alt_R"
Pasteboard tab:
• All are enabled.
~/.Xresources file:
xterm*metaSendsEscape: trueXTerm*VT100.Translations: #override \ Shift <KeyPress> Help: insert-selection(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n\ <KeyPress> Help: select-set(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n\ <BtnUp>: select-end(CLIPBOARD,PRIMARY,CUT_BUFFER0)\n
+ my personal preferences:
xterm*loginShell: true xterm*cursorColor: pink xterm.vt100.reverseVideo: false !xterm.vt100.foreground: yellow !xterm.vt100.background: black xterm.vt100.saveLines: 1023 xterm.vt100.scrollBar: false xterm.vt100.deleteIsDEL: true xterm.vt100.visualBell: true xterm.vt100.popOnBell: true