Re: How can I underline the current index entry?

2002-02-11 Thread darren chamberlain

Michael Elkins <[EMAIL PROTECTED]> said something to this effect on 02/11/2002:
> On Sun, Feb 10, 2002 at 08:30:50AM +, Benjamin Smith wrote:
> > Why is this? This is a mutt limitation isn't it, as other
> > ncurses apps (w3m) can colour *and* underline, perhaps this
> > should get placed on a TODO list?
> 
> Try the following patch.  It's a hack that lets you use
> underline when you prefix one of the color names with an
> underscore:
> 
>   color _brightred yellow
> 
> should get you underlined bold read fg on yellow bg.

I wasn't very interested in being able to do underlined colors
until I applied the patch; it's pretty cool.  Is something like
this going to be in 1.4.0?

(darren)

-- 
Morality works best when chosen, not when mandated.
-- Larry Wall



Re: How can I underline the current index entry?

2002-02-11 Thread Michael Elkins

On Sun, Feb 10, 2002 at 08:30:50AM +, Benjamin Smith wrote:
> Why is this? This is a mutt limitation isn't it, as other ncurses apps
> (w3m) can colour *and* underline, perhaps this should get placed on a
> TODO list?

Try the following patch.  It's a hack that lets you use underline when you
prefix one of the color names with an underscore:

color _brightred yellow

should get you underlined bold read fg on yellow bg.


--- color.c~Thu Jan 24 04:10:48 2002
+++ color.c Sun Feb 10 21:56:53 2002
@@ -305,6 +305,13 @@ parse_color_name (const char *s, int *co
 {
   char *eptr;
 
+  /* XXX hack to allow underline with colors */
+  if (*s == '_')
+  {
+*attr |= A_UNDERLINE;
+s++;
+  }
+
   if (mutt_strncasecmp (s, "bright", 6) == 0)
   {
 *attr |= brite;



Re: How can I underline the current index entry?

2002-02-10 Thread Jeremy Blosser

On Feb 10, Benjamin Smith [[EMAIL PROTECTED]] wrote:
> On Sat, Feb 09, 2002 at 04:01:49PM -0600, Jeremy Blosser wrote:
> > It can't be done.  Mono attributes are not currently available when color
> > attributes are being used.
> 
> Why is this? This is a mutt limitation isn't it, as other ncurses apps
> (w3m) can colour *and* underline, perhaps this should get placed on a
> TODO list?

Yes, it's specific to the way Mutt is written.  It's in the BTS somewhere
already.



msg24391/pgp0.pgp
Description: PGP signature


Re: How can I underline the current index entry?

2002-02-10 Thread Benjamin Smith

On Sat, Feb 09, 2002 at 04:01:49PM -0600, Jeremy Blosser wrote:
> It can't be done.  Mono attributes are not currently available when color
> attributes are being used.

Why is this? This is a mutt limitation isn't it, as other ncurses apps
(w3m) can colour *and* underline, perhaps this should get placed on a
TODO list?

-- 
Benjamin Smith <[EMAIL PROTECTED], [EMAIL PROTECTED]>



msg24385/pgp0.pgp
Description: PGP signature


Re: How can I underline the current index entry?

2002-02-09 Thread Daniel Farnsworth Teichert

And I heard Jeremy Blosser exclaim:
> On Feb 09, Daniel Farnsworth Teichert [[EMAIL PROTECTED]] wrote:
> > So I'd really like to be able to *underline* the current entry, or
> > perhaps make it bold, or something like that. But I haven't been able
> > to find a way to do this. If the mono settings could somehow work in
> > conjunction with the color settings--but in all my experimentation this
> > has never worked right.
> > 
> > Could someone point me to a place to find out more about this, or give
> > me a pointer or two, or tell me it can't be done? Thanks!
> 
> It can't be done.  Mono attributes are not currently available when color
> attributes are being used.
> 
> However, Mike Schiraldi has a patch to make just the indicator bar able to
> do inverse even when in color mode.  You can find it by searching the list
> archives.

Thanks for the info, and the pointer. I saw that thread go by before, but was
hoping for some way to leave my color scheme more intact. Still, that's probably
better than nothing. Maybe I'll go that route.

Anyway, thanks!

  --Daniel T.



Re: How can I underline the current index entry?

2002-02-09 Thread Jeremy Blosser

On Feb 09, Daniel Farnsworth Teichert [[EMAIL PROTECTED]] wrote:
> So I'd really like to be able to *underline* the current entry, or
> perhaps make it bold, or something like that. But I haven't been able
> to find a way to do this. If the mono settings could somehow work in
> conjunction with the color settings--but in all my experimentation this
> has never worked right.
> 
> Could someone point me to a place to find out more about this, or give
> me a pointer or two, or tell me it can't be done? Thanks!

It can't be done.  Mono attributes are not currently available when color
attributes are being used.

However, Mike Schiraldi has a patch to make just the indicator bar able to
do inverse even when in color mode.  You can find it by searching the list
archives.



msg24375/pgp0.pgp
Description: PGP signature


How can I underline the current index entry?

2002-02-09 Thread Daniel Farnsworth Teichert

I hope this isn't a silly question, I've tried reading in the manual
and fiddling on my own.

I use different colors to mark off different types of email in mutt.
I also use mutt in an xterm (or gome-terminal, or whatever) that's
the size of the screen (on a Debian unstable box, if that matters).

So the problem is, I don't want the current email in the index to be
highlighted with a different color, because then it makes it harder
to tell what kind of message it is. But I don't want to use the little
arrow (->) indicator, because the screen is so wide that I can't trace
all the way across it and keep track of which line I'm on very easily.

So I'd really like to be able to *underline* the current entry, or
perhaps make it bold, or something like that. But I haven't been able
to find a way to do this. If the mono settings could somehow work in
conjunction with the color settings--but in all my experimentation this
has never worked right.

Could someone point me to a place to find out more about this, or give
me a pointer or two, or tell me it can't be done? Thanks!

  --Daniel T.

P.S. Thanks for a great program, by the way. Mutt's marvelous!