1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

Customize xterm

Discussion in 'Mac Programming' started by msb65, Jun 1, 2009.

  1. macrumors member

    #1
    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!
     
  2. macrumors 68040

    lee1210

    #2
    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.
    Code:
    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
     

Share This Page