Skip to content

Instantly share code, notes, and snippets.

@uriel1998
Created November 26, 2012 00:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uriel1998/4145960 to your computer and use it in GitHub Desktop.
Save uriel1998/4145960 to your computer and use it in GitHub Desktop.
Xterm commands to allow for modern cut-n-paste (and look spiffy too).
! this are Xresources to make xterm look good
! put into ~/.Xresources
! after changing contents, run xrdb -merge .Xresources
! http://blog.ssokolow.com/archives/2011/05/01/modernizing-xterms-paste/
! http://www.leidinger.net/X/xresources/app-defaults/XTerm_mascheck
! http://linux.seindal.dk/2005/06/16/xterm-and-the-clipboard/
! http://blog.bigsmoke.us/2010/01/31/xterm-clipboard-selection
! http://www.davidsimmons.com/soft/xtermhacks/
xterm*foreground: rgb:a8/a8/a8
xterm*background: rgb:00/00/00
xterm*vt100*geometry: 140x50
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
xterm*faceName: Inconsolata
xterm*faceSize: 10
xterm*boldMode: false
xterm*colorBDMode: true
xterm*colorBD: rgb:fc/fc/fc
XTerm*VT100.translations: #override \
<Btn1Up>: select-end(PRIMARY, CLIPBOARD, CUT_BUFFER0) \n\
Shift<Btn1Down>: select-start() \n\
Shift<Btn1Motion>: select-extend() \n\
Shift<Btn1Up>: select-end(PRIMARY, CLIPBOARD) \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment