PDA

View Full Version : HowTo: xterm : scrollbars on the right, using mouse-3



beforewisdom
06-28-2003, 09:22 PM
Hi;

I wanted to have my xterm windows to have scrollbars, display them on the right hand side of the window, and to scroll using the left or right mouse buttons.

The man page was incredibly abstruse.

There was nothing on google about it or several other forums.

I finally got help in bits and pieces and managed to get all of these features from xterm.

I am posting how to do it here for others who want the same thing:

Steve




--------------------------------------------------------------------
! Cool Xterm defaults
! place this in /etc/X11/app-defaults/XTerm


xterm*background: Black
xterm*foreground: White
xterm.eightBitInput: true
! xterm*font: -adobe-courier-bold-r-normal--14-140-75-75-m-90-iso8859-1
xterm*SaveLines: 2000
! xterm*VisualBell: true
xterm*appcursorDefault: true
*XTerm*saveLines: 1000


! Set up scrollbars - get them, get them on the right side, and be
! able to scroll them with the right,left, or middle mouse button
xterm*ScrollBar: on
*XTerm*scrollBar: true
xterm*rightScrollBar: true
xterm*multiScroll: on
xterm*jumpScroll: on

xterm*scrollbar.Translations: #override \n\
<Btn1Down>:StartScroll(Continous) MoveThumb() NotifyThumb()\n\
<Btn1Motion>:MoveThumb() NotifyThumb() \n\
<Btn2Down>:StartScroll(Continous) MoveThumb() NotifyThumb()\n\
<Btn2Motion>:MoveThumb() NotifyThumb() \n\
<Btn3Down>:StartScroll(Continous) MoveThumb() NotifyThumb()\n\
<Btn3Motion>:MoveThumb() NotifyThumb() \n\
<BtnUp>:NotifyScroll(Proportional) EndScroll()