PDA

View Full Version : Customize xterm




msb65
Jun 1, 2009, 10:30 PM
Hi,

I would like to change the default appearance of my xterm windows. How can I do that? Specifically I would like to be able to add a scroll bar similar to the one that is in Terminal.

Thanks!



lee1210
Jun 2, 2009, 08:27 AM
I don't spend much time at all in X on my mac, but I can paste my .Xdefaults from my Windows/Cygwin setup... you might find some of it handy.
xterm*foreground: white
xterm*background: black
xterm*saveLines: 10000
xterm*scrollBar: true
xterm*geometry: 80x50
XTerm.vt100.translations: #override\n\
Alt<Btn4Down>,<Btn4Up>: string("0x9b") string("[64~") string("0x9b") string("[64~") string("0x9b") string("[64~") string("0x9b") string("[64~") \n\
Alt<Btn5Down>,<Btn5Up>: string("0x9b") string("[65~") string("0x9b") string("[65~") string("0x9b") string("[65~") string("0x9b") string("[65~") \n\
Shift<Btn4Down>,<Btn4Up>: scroll-back(1,halfpage)\n\
Shift<Btn5Down>,<Btn5Up>: scroll-forw(1,halfpage)\n\
Ctrl<Btn4Down>,<Btn4Up>: scroll-back(1,page)\n\
Ctrl<Btn5Down>,<Btn5Up>: scroll-forw(1,page)\n\
<Btn4Down>,<Btn4Up>: scroll-back(1,line)\n\
<Btn5Down>,<Btn5Up>: scroll-forw(1,line)\n\

The Alt+BtnXDown/Up stuff was an attempt to get wheel-scrolling going in vim, so i wouldn't be too concerned about that.

-Lee