Quoth Brian Cuttler on Tuesday, 31 August 2010:
> This is telling...
> 
> #!/bin/sh
> for color in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 0
> do
> echo "`tput setaf ${color}``date`"
> done
> 
> 
> output is as expected for the first 8 colors, that is
> Black, Red, Green, Yellow, Blue, Magenta, Cyan, White (on white...)
> 
> When run on my Solaris 10 desktop I then get the inverse for the
> last 8. I do not get the inverse on the remote system.
> 
> 
> 
> On Tue, Aug 31, 2010 at 12:22:00PM -0700, Chip Camden wrote:
> > Quoth Brian Cuttler on Tuesday, 31 August 2010:
> > > Chip,
> > > 
> > > This works a little better
> > > # echo "`tput setaf 1`hello`tput me`"
> > > tput: unknown terminfo capability 'me'
> > > hello
> > > 
> > > Where we are in red from hello onwards.
> > > 
> > > So there are some colors available. 
> > > 
> > > 
> > > On Tue, Aug 31, 2010 at 11:46:57AM -0700, Chip Camden wrote:
> > > > Quoth Brian Cuttler on Tuesday, 31 August 2010:
> > > > > Chip,
> > > > > 
> > > > > No, mutt is not producing any errors, its just failing, not only
> > > > > to set colors but even to highlight (or is it simply reverse)
> > > > > the black and white header and footer or provide inverse for the
> > > > > message I'm currently pointing to in the index.
> > > > > 
> > > > > With mutt not complaining I'm guessing it is a terminal/display
> > > > > issue rather than a mutt issue, just hadn't realized that the new
> > > > > server (since nothing changed on my desktop) had, ya know, issues.
> > > > > 
> > > > > I don't think its mutt, I think mutt is just a symptom, had
> > > > > hoped that everything would work out of the box.
> > > > > 
> > > > > Trying to download newer sunfreeware mutt build but the download
> > > > > keeps stalling out on me.
> > > > > 
> > > > >                                               thanks,
> > > > > 
> > > > >                                               Brian
> > > > > 
> > > > > On Tue, Aug 31, 2010 at 11:19:59AM -0700, Chip Camden wrote:
> > > > > > Quoth Brian Cuttler on Tuesday, 31 August 2010:
> > > > > > > Hate ask, but I think I've tried the obvious...
> > > > > > > 
> > > > > > > Moving from a Solaris 9/sparc box with mutt Mutt 1.4.1i 
> > > > > > > (2003-03-19)
> > > > > > > to Solaris 10x86 with Mutt 1.5.17 (2007-11-01) and I'm finding 
> > > > > > > that
> > > > > > > my colors and highlighting don't work at all.
> > > > > > > 
> > > > > > > Checked terminal type, the same, didn't make any config changes,
> > > > > > > just # ssh'd into a different server. My desktop is Solaris 10x86
> > > > > > > and that hasn't changed either. Its something with the server or
> > > > > > > with the specific build of mutt, I believe both from sunfreeware.
> > > > > > > 
> > > > > > > Sorry to ask such a rudimenary question.
> > > > > > > 
> > > > > > >                                           Thanks for your help,
> > > > > > > 
> > > > > > >                                           Brian
> > > > > > > 
> > > > > > > ---
> > > > > > >    Brian R Cuttler                 brian.cutt...@wadsworth.org
> > > > > > >    Computer Systems Support        (v) 518 486-1697
> > > > > > >    Wadsworth Center                (f) 518 473-6384
> > > > > > >    NYS Department of Health        Help Desk 518 473-0773
> > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > IMPORTANT NOTICE: This e-mail and any attachments may contain
> > > > > > > confidential or sensitive information which is, or may be, legally
> > > > > > > privileged or otherwise protected by law from further disclosure. 
> > > > > > >  It
> > > > > > > is intended only for the addressee.  If you received this in 
> > > > > > > error or
> > > > > > > from someone who was not authorized to send it to you, please do 
> > > > > > > not
> > > > > > > distribute, copy or use it or any attachments.  Please notify the
> > > > > > > sender immediately by reply e-mail and delete this from your
> > > > > > > system. Thank you for your cooperation.
> > > > > > > 
> > > > > > 
> > > > > > Rudimentary, yes.  Easy, no.  I probably don't know enough about 
> > > > > > Solaris
> > > > > > to help you, but I can tell you that on FreeBSD I ran into several
> > > > > > issues:
> > > > > > 
> > > > > > 1. I had to build mutt with slang instead of ncurses.
> > > > > > 
> > > > > > 2. The terminal definition I use has to be set up correctly in 
> > > > > > *both*
> > > > > > termcap and terminfo.  Specifically, it needs to have the correct 
> > > > > > number
> > > > > > of colors specified (Co# in termcap) and the correct sequences for
> > > > > > setting foreground/background color.
> > > > > > 
> > > > > > 3. The terminal in which you are running mutt (urxvt in my case) 
> > > > > > has to
> > > > > > be built with the same color options (256 color support, in my 
> > > > > > case).
> > > > > > 
> > > > > > So, what kind of problem are you seeing?  Is mutt complaining, or 
> > > > > > is it
> > > > > > just silently not changing the colors?
> > > > > > 
> > > > > > -- 
> > > > > > Sterling (Chip) Camden    | sterl...@camdensoftware.com | 
> > > > > > 2048D/3A978E4F
> > > > > > http://camdensoftware.com | http://chipstips.com        | 
> > > > > > http://chipsquips.com
> > > > > 
> > > > > 
> > > > > ---
> > > > >    Brian R Cuttler                 brian.cutt...@wadsworth.org
> > > > >    Computer Systems Support        (v) 518 486-1697
> > > > >    Wadsworth Center                (f) 518 473-6384
> > > > >    NYS Department of Health        Help Desk 518 473-0773
> > > > > 
> > > > > 
> > > > > 
> > > > > IMPORTANT NOTICE: This e-mail and any attachments may contain
> > > > > confidential or sensitive information which is, or may be, legally
> > > > > privileged or otherwise protected by law from further disclosure.  It
> > > > > is intended only for the addressee.  If you received this in error or
> > > > > from someone who was not authorized to send it to you, please do not
> > > > > distribute, copy or use it or any attachments.  Please notify the
> > > > > sender immediately by reply e-mail and delete this from your
> > > > > system. Thank you for your cooperation.
> > > > > 
> > > > 
> > > > Try this at a shell prompt:
> > > > 
> > > > echo "`tput AF 1`hello`tput me`" 
> > > > 
> > > > "hello" should be in red.
> > > > 
> > > > -- 
> > > > Sterling (Chip) Camden    | sterl...@camdensoftware.com | 2048D/3A978E4F
> > > > http://camdensoftware.com | http://chipstips.com        | 
> > > > http://chipsquips.com
> > > 
> > > 
> > > ---
> > >    Brian R Cuttler                 brian.cutt...@wadsworth.org
> > >    Computer Systems Support        (v) 518 486-1697
> > >    Wadsworth Center                (f) 518 473-6384
> > >    NYS Department of Health        Help Desk 518 473-0773
> > > 
> > > 
> > > 
> > > IMPORTANT NOTICE: This e-mail and any attachments may contain
> > > confidential or sensitive information which is, or may be, legally
> > > privileged or otherwise protected by law from further disclosure.  It
> > > is intended only for the addressee.  If you received this in error or
> > > from someone who was not authorized to send it to you, please do not
> > > distribute, copy or use it or any attachments.  Please notify the
> > > sender immediately by reply e-mail and delete this from your
> > > system. Thank you for your cooperation.
> > > 
> > 
> > That says that you have working color support (at least for red) in
> > terminfo.  What we don't know is whether mutt is using terminfo or
> > termcap, but if you set some common element in mutt to use red for the
> > foreground, and you don't see it -- well, then termcap looks like the
> > likely suspect.
> > 
> > What did 'tput colors' show?
> > 
> > -- 
> > Sterling (Chip) Camden    | sterl...@camdensoftware.com | 2048D/3A978E4F
> > http://camdensoftware.com | http://chipstips.com        | 
> > http://chipsquips.com
> 
> 
> ---
>    Brian R Cuttler                 brian.cutt...@wadsworth.org
>    Computer Systems Support        (v) 518 486-1697
>    Wadsworth Center                (f) 518 473-6384
>    NYS Department of Health        Help Desk 518 473-0773
> 
> 
> 
> IMPORTANT NOTICE: This e-mail and any attachments may contain
> confidential or sensitive information which is, or may be, legally
> privileged or otherwise protected by law from further disclosure.  It
> is intended only for the addressee.  If you received this in error or
> from someone who was not authorized to send it to you, please do not
> distribute, copy or use it or any attachments.  Please notify the
> sender immediately by reply e-mail and delete this from your
> system. Thank you for your cooperation.
> 

I presume that TERM has a different value in the two cases.

In each case, what does the following command output?

tput colors

is it 8, 16, 256, or something else?

what happens if you use setf instead of setaf?

-- 
Sterling (Chip) Camden    | sterl...@camdensoftware.com | 2048D/3A978E4F
http://camdensoftware.com | http://chipstips.com        | http://chipsquips.com

Attachment: pgppsoDztWQkh.pgp
Description: PGP signature

Reply via email to