Wednesday, January 18, 2012

X11/xterm bliss in OSX


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:   true

XTerm*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

No comments:

Post a Comment

#RSFtalks with Edward Snowden

What an intelligent, thoughtful individual. I find it difficult to forgive 44 for failing to pardon this patriot and instead pursuing him ...

Other Popular Posts: