[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#382225: xterm: scrollbars like firefox's

On Wed, Aug 09, 2006 at 07:30:12PM +0200, Dan Jacobson wrote:
> Package: xterm
> Version: 210-3
> Severity: wishlist
> I wish there was a way to make xterm scrollbars look and act just like
> emacs-snapshot, rxvt, and firefox scrollbars -- a slider movable with
> the left mouse button.

There already is (though I agree it's not well documented).
The scrollbar behavior is controlled by a translations resource.
Reading the Xaw source-code, I see this (not much better in the Xaw spec):

static char defaultTranslations[] =
"<Btn5Down>:"   "StartScroll(Forward)\n"
"<Btn1Down>:"   "StartScroll(Forward)\n"
"<Btn2Down>:"   "StartScroll(Continuous) MoveThumb() NotifyThumb()\n"
"<Btn3Down>:"   "StartScroll(Backward)\n"
"<Btn4Down>:"   "StartScroll(Backward)\n"
"<Btn2Motion>:" "MoveThumb() NotifyThumb()\n"
"<BtnUp>:"      "NotifyScroll(Proportional) EndScroll()\n";

which gives some hints.

Thomas E. Dickey

Attachment: pgpsDvjH87Q6x.pgp
Description: PGP signature

Reply to: