Skip to content

Instantly share code, notes, and snippets.

@tshanks
Created August 14, 2011 16:57
Show Gist options
  • Save tshanks/1145068 to your computer and use it in GitHub Desktop.
Save tshanks/1145068 to your computer and use it in GitHub Desktop.
xterm .Xdefaults for Mac OS X's awkward X11 server
# XDarwin only shares the CLIPBOARD properly with the rest of Mac OS X
# (the PRIMARY options don't work) and doesn't properly handle copying
# to multiple buffers (it manages to lose one of them). We only have
# one mouse button. For now, let's just use the good old menu option
# selectToClipboard, even though it breaks extending with the third
# mouse button we don't have.
xterm*selectToClipboard: true
# The OS X xterm doesn't set t_vb in vim, so we need to make the bells
# visual out here.
xterm*visualBell: true
# From http://yarger.asu.edu/NMR/Xdefaults.html
# Take a look at what's there; there might be more worth adding
# Note that their M-V / M-C copy-pasting didn't work on 10.5 even with
# the latest XDarwin and all possible combinations of clipboard sharing
## TERMINAL KEY SETTINGS
## Adjust to OSX Terminal.app behaviour
*VT100.translations: #override\n\
Meta <Key> minus: smaller-vt-font() \n\
Meta <Key> KP_Subtract: smaller-vt-font() \n\
Meta <Key> plus: larger-vt-font() \n\
Meta <Key> KP_Add: larger-vt-font() \n\
#
# From http://dmr.ath.cx/notes/xterm.html
#
xterm*loginShell: true
xterm*vt100*geometry: 80x50
# Scrollback length
xterm*saveLines: 2000
# Changes what qualifies as a word for mouse-selecting by
# word (by clicking several times)
xterm*charClass: 33:48,35:48,37:48,43:48,45-47:48,64:48,95:48,126:48,35:48
# Tell everyone we support 256 colors
xterm*termName: xterm-color
# Set foreground to 0xAA (CGA regular, not-bright white) and background
# to black
xterm*foreground: rgb:a8/a8/a8
xterm*background: rgb:00/00/00
# CGA colors
xterm*color0: rgb:00/00/00
xterm*color1: rgb:a8/00/00
xterm*color2: rgb:00/a8/00
xterm*color3: rgb:a8/54/00
xterm*color4: rgb:00/00/a8
xterm*color5: rgb:a8/00/a8
xterm*color6: rgb:00/a8/a8
xterm*color7: rgb:a8/a8/a8
xterm*color8: rgb:54/54/54
xterm*color9: rgb:fc/54/54
xterm*color10: rgb:54/fc/54
xterm*color11: rgb:fc/fc/54
xterm*color12: rgb:54/54/fc
xterm*color13: rgb:fc/54/fc
xterm*color14: rgb:54/fc/fc
xterm*color15: rgb:fc/fc/fc
# Make text bright, not fat, when it is bold
xterm*boldMode: false
xterm*colorBDMode: true
xterm*colorBD: rgb:fc/fc/fc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment