Skip to content

XTerm configuration

I just created a gist for my XTerm configuration (separated from the rest of my X resources). Here’s a snapshot of the current version:

XTerm*background: black
XTerm*Foreground: Grey

XTerm*faceName: Liberation Mono
XTerm*faceSize: 10

XTerm*on2Clicks: regex [^  \n]+

XTerm*bellIsUrgent: true

! Make the terminal 127 by 42 characters in size
XTerm*geometry: 127x44+64+0

! By default, XTerm composes special chars with META. With this setting I can work my readline magic instead.
XTerm*metaSendsEscape: true

! Bracketed paste mode requires the allowWindowOps resource to be true 
XTerm*allowWindowOps: true

XTerm*saveLines: 1000

! Don't jump to the bottom when there's output
XTerm*VT100*scrollTtyOutput: false

XTerm*VT100.Translations: #override \
    ShiftInsert: insert-selection(CLIPBOARD) \n\
    Insert: insert-selection(PRIMARY) \n\
    Shift: insert-selection(CLIPBOARD) \n\
    ShiftUp: scroll-back(1) \n\
    ShiftDown: scroll-forw(1)


! vim: set syntax=xdefaults expandtab tabstop=4 shiftwidth=4:

    5 Comments ( Add comment / trackback )

    1. (permalink)
      Comment by halfgaar
      On November 18, 2009 at 17:15

      My backspace key doesn’t work in screen in xterm. I already added “bindkey -d kb stuff ^H” to my screenrc, as per this, but that didnt help.

      Also, $TERM is xterm by default and Xterm*ternName doesn’t seem to accept linux. It accepts xterm-color, for example, but not linux. But doing export TERM=linux does make it work.

      An no, when I set it to xterm as opposed to linux in my screenrc, backspace still doesn’t work.

    2. (permalink)
      Comment by Rowan Rodrik
      On November 18, 2009 at 20:18

      I noticed that my .screenrc contains the following line. I’m not sure what it does, but let me know if it helps:

      termcapinfo xterm 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'

    3. (permalink)
      Comment by Rowan Rodrik
      On January 31, 2010 at 21:54

      Are you still using Krappy Konsole instead of submitting to the one true church of XTerm?

    4. (permalink)
      Comment by halfgaar
      On January 31, 2010 at 23:10

      Yes, I am… And you are an Xel33t :)?

    5. (permalink)
      Comment by Rowan Rodrik
      On February 1, 2010 at 01:08

      O yes I am! 😀