Tuesday, August 3, 2010

wheel mouse setting for xterm

On the remote machine, put these contents into the file .Xdefaults of the home folder:

!# Scrolling on wheel mouse: half a page normally, line per line with shift
XTerm.vt100.translations: #override\n\
Shift,:scroll-back(1,line)\n\
Shift,:scroll-forw(1,line)\n\
Ctrl,:scroll-back(1,page)\n\
Ctrl,:scroll-forw(1,page)\n\
,:scroll-back(1,halfpage)\n\
,:scroll-forw(1,halfpage)\n\

!# In the scrollbar we map buttons 5 & 4 to 1 and 2 otherwise, core dump
!# This will move proportionally to cursor position but we dont know how to
!# program the same exact behavior as in the text widget.
XTerm.vt100.Scrollbar.translations: #override\n\
: StartScroll(Forward)\n\
: StartScroll(Backward)\n\
 

No comments:

Post a Comment