Smokes your problems, coughs fresh air.

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

  1. halfgaar

    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. Rowan Rodrik

    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. Rowan Rodrik

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

  4. halfgaar

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

  5. Rowan Rodrik

    O yes I am! 😀

© 2024 BigSmoke

Theme by Anders NorenUp ↑