<<< Date Index >>>     <<< Thread Index >>>

Re: Pager Breaks Colors



Oh, whoops ... by the time I attached the file, my debugging setup had
already overwritten the file with a new message.  This time, I believe
I'm attaching the right one.  (My email address is also broken in the
middle of coloring, I just noticed, BTW.)

 - Dave


On Fri, Dec 26, 2003 at 12:45:51PM -0500, David Yitzchak Cohen wrote:
> I submitted a bug report a while ago stating an earlier problem I
> had with Mutt's pager clobbering my ANSI escape sequences even when
> allow_ansi was set.  Since then, I've discovered that the behavoir doesn't
> just trigger on newlines, as the attached file (generated by my latest
> displayfilter configuration, utilizing a 100% XML pipeline) clearly shows.
> Try viewing it within Mutt, and you'll notice that the colors in the
> URLs in particular are badly screwed up.  If you view it using cat or
> more, though, you'll see that the ANSI sequences are in fact correct.
> (You can look at it in less and see the escape sequences directly,
> if you don't believe cat and more.)
> 
> Is there a chance that somebody might be interested in fixing the thing?
> AFAICT, allow_ansi should essentially just let the filtered email just
> control the terminal directly with the ANSI sequences, rather than
> constantly killing off escape sequences prematurely.  (Otherwise, what's
> the point of allow_ansi in the first place?)
> 
> Thanks,
>  - Dave
> 
> -- 
> Uncle Cosmo, why do they call this a word processor?
> It's simple, Skyler.  You've seen what food processors do to food, right?
> 
> Please visit this link:
> http://rotter.net/israel

> Date: Fri, 26 Dec 2003 12:43:38 -0500 (EST)
> From: Asif Iqbal <iqbala@xxxxxxxxxxx>
> Subject: Re: Sortign Issue
> X-X-Sender: iqbala@qmail
> To: Zbynek Houska <zbynh@xxxxxxxxx>
> 
> On Fri, 26 Dec 2003, Zbynek Houska wrote:
> 
> > Date: Fri, 26 Dec 2003 00:44:47 +0100
> > From: Zbynek Houska <zbynh@xxxxxxxxx>
> > To: Mutt Users List <mutt-users@xxxxxxxx>
> > Subject: Re: Sortign Issue
> >
> > On Thu, Dec 25, 2003 at 06:22:38PM -0500, Asif Iqbal wrote:
> > > If I use
> > >
> > > set sort=reverse-date-recieved I loose thred. I like to keep the thread 
> > > along
> > > with the reverse-date. How do I do that ?
> > >
> > Hope it helps you :-)
> >
> > folder-hook . set sort=reverse-threads
> >
> 
> I like keep the threads as it is, but just sort by reverse arrival. I can do 
> it
> fine in Pine. Basically I do not want to go the last page to see the latest
> email. At the same time I like see the mails as original than replies in that
> order. In Pine I choose reverse-arrival and show threads, that does exactly 
> what
> I want
> 
> Thanks
> 
> > Zbynek
> >
> 
> -- 
> Asif Iqbal
> http://pgpkeys.mit.edu:11371/pks/lookup?op=get&search=0x8B686E08
> There's no place like 127.0.0.1




-- 
Uncle Cosmo, why do they call this a word processor?
It's simple, Skyler.  You've seen what food processors do to food, right?

Please visit this link:
http://rotter.net/israel
Date: Fri, 26 Dec 2003 09:29:34 -0500
Subject: Re: muttquery
To: Mutt Users List <mutt-users@xxxxxxxx>

GPG: Dave Cohen <dave@dave.tj>:
On Thu, Dec 25, 2003 at 04:01:51AM -0500, David Yitzchak Cohen 
wrote:
> On Thu, Dec 25, 2003 at 06:51:12PM +1100, Ricky Buchanan wrote:

> > Anyway,  have situations in OTHER programs where I have to look up email
> > addresses, on occasion, and it'd be REALLY handy if instead of looking
> > up and getting the output like this:
> > 
> > Searching through 475 addresses in pilot address book.
> > frayah@xxxxxxxxxxx      Anne Oberin     
> > rb@xxxxxxxxxxxxxx       Penguin Ricky Buchanan  
> > Colin.Oberin@xxxxxxxxxx Colin Oberin    Dad Father
> > kase@xxxxxxxx   Hayden Oberin   
> > kaysik@xxxxxxxxxx       Ptolemy Oberin  
> > 
> > Then for cases where there's >1 entry, I'd like mutt's
> > query-answer-choosing program to come up, let me choose the answer, and
> > return it to stdout like, for example
> > 
> > rb@xxxxxxxxxxxxxx
> > 
> > still using the previous example.  And, like with mutt, in the previous
> > example it would automatically choose and return one address if the
> > query program returned only one.
> > 
> > Possible to do/access from the command line?

Well, I got bored, so I made a program to do just that.  The only
thing is, it depends on the dialog program to do the actual work.
(The dialog program is the UI backbone of Slackware's setup system,
and is easily available online.)

The source code may be found here:
http://www.bigfatdave.com/dave/bin/selection_box.c

...and an i686 (glibc 2.3.2) precompiled version is here:
http://www.bigfatdave.com/dave/bin/selection_box

To use it, simply pipe your $query_command into it.  It accepts up to
BUFFERS-1 lines of input, where each line can be of the form "option"
or "option<tab>explanation" and the special case of "option<tab>" is
handled correctly, so the input can easily be autogenerated without you
having to do too many of your own checks.  If you'd like a friendly
message to appear at the top of the menu, make it the only argument
to selection_box.  If no input lines are found, selection_box prints
nothing to stdout.  If one input line is found, it'll print the option
(without the explanation) to stdout without calling dialog.  Otherwise,
it'll call dialog with the appropriate arguments.

Enjoy,
 - Dave

-- 
Uncle Cosmo, why do they call this a word processor?
It's simple, Skyler.  You've seen what food processors do to food, right?

Please visit this link:
http://rotter.net/israel
GPG: fin

Attachment: pgpHVOTWbW1Mq.pgp
Description: PGP signature