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

Re: mouse wheel scrolling in mutt ???



Also sprach Michael D. Schleif (Wed 23 Jul 02003 at 06:59:31PM -0500):
> Also sprach Gregory Seidman (Tue 22 Jul 02003 at 03:38:18PM -0400):
> > On Tue, Jul 22, 2003 at 02:16:04PM -0500, Michael D. Schleif wrote:
> > [...]
> > } However, when I am reading long emails, it would really be nice to use
> > } the mouse wheel to scroll down the page, just as I do with webpages.
> > 
> > I actually read the mutt user list and saw the messages fly by on the topic
> > today. I didn't actually read them (just deleted them by subject), but I
> > decided to see if I could do it, just for fun. It turns out that it is
> > pretty easy, except...
> > 
> > } I'm running mutt in rxvt, if that matters.
> > 
> > ...yes, that matters tremendously. I got it working using xterm (which I
> > use anyway). You see, xterm is a proper Xt app and, therefore, handles Xt
> > translations in X resources automatically. Since I pop up a new window for
> > mutt (named mutt) anyway, I just put the following in my .Xdefaults:
> > 
> > mutt.vt100.translations:	#override \n\
> >         None<Btn4Down>:	string(<<) \n\
> >         None<Btn5Down>:	string(>>) \n
> > 
> > You will have to reload your resources using xrdb. You will also need the
> > following in your .muttrc:
> > 
> > bind pager < previous-line
> > bind pager > next-line
> > 
> > Note that you could use pretty much any pair of characters, but since the
> > angle brackets are already bound properly in index and help, I decided to
> > use them. Also note that I have it going two lines at a time, but you can
> > adjust that to your liking.
> > 
> > [...]
> > } What do you think?
> > 
> > I think you should switch to xterm, at least for mutt use.
> 
> New problems ;<
> 
> Intermittently, this *stops* working!
> 
> This morning, I got up and my mutt session from yesterday performs as
> expected, except *NO* mouse wheel up nor down.  Nor did invoking this
> again help the situation:
> 
>     xrdb -load ~/.Xdefaults
> 
> I had to logoff and logon again; and, then, I had to invoke xrdb --
> finally, it worked as expected.
> 
> Now, I was out of the office for the afternoon, and I came home to find
> that scrolling up now scrolls up the entire terminal, *not* just the
> pager portion.  In fact, composing this message in vim, I can scroll up
> into stuff I earlier shelled out to, but I cannot scroll down into my
> sig ?!?!

Furthermore, I just rebooted, and when I first startup the script that
sets locale and calls mutt, it comes up with white-on-black, even though
this is in ~/.Xdefaults:

    *charClass:                33:48,37:48,45-47:48,64:48
    xterm*font:                9x15
    *background:               white
    *foreground:               black
    *scrollKey:                true
    *scrollTtyOutput:          false
    Scrollbar.JumpCursor:      true
    *visualBell:               true
    XTerm*reverseWrap:         true
    XTerm*saveLines:           9999
    XTerm*scrollBar:           true
    XTerm.VT100.titeInhibit:   true
    XTerm.VT100*dynamicColors: on
    mutt.vt100.translations:   #override \n\
             None<Btn4Down>:   string(<<) \n\
             None<Btn5Down>:   string(>>) \n
    mutt*font:                 9x15
    mutt*geometry:             150x65+50+50
    mutt*scrollBar:            false

Once I invoke xrdb, then everything is OK -- for now ;>

-- 
Best Regards,

mds
mds resource
877.596.8237
-
Dare to fix things before they break . . .
-
Our capacity for understanding is inversely proportional to how much
we think we know.  The more I know, the more I know I don't know . . .
--

Attachment: pgpvq3E2gN48w.pgp
Description: PGP signature


Reply to: