Re: mutt - color problem

2010-09-01 Thread Brian Cuttler
On Tue, Aug 31, 2010 at 01:57:39PM -0700, Chip Camden wrote:
 Quoth Brian Cuttler on Tuesday, 31 August 2010:
  On Tue, Aug 31, 2010 at 01:16:03PM -0700, Chip Camden wrote:
   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 HealthHelp 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 
   

Re: mutt - color problem

2010-09-01 Thread Chip Camden
Quoth Brian Cuttler on Wednesday, 01 September 2010:
 On Tue, Aug 31, 2010 at 01:57:39PM -0700, Chip Camden wrote:
  Quoth Brian Cuttler on Tuesday, 31 August 2010:
   On Tue, Aug 31, 2010 at 01:16:03PM -0700, Chip Camden wrote:
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 HealthHelp 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 

Re: mutt - color problem

2010-09-01 Thread Brian Cuttler

Chip,

 curie's mutt is built with slang, nnewton's is built with ncurses.  That
 probably accounts for the difference.

I finally got a download of a newer mutt version from sunfreeware
and will install it on the Solaris x86 platform.

Assuming that its also built with slang - do you know what I need
to do to make it work ?

thanks,

Brian


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.




Re: mutt - color problem

2010-09-01 Thread Chip Camden
Quoth Brian Cuttler on Wednesday, 01 September 2010:
 Chip,
 
  curie's mutt is built with slang, nnewton's is built with ncurses.  That
  probably accounts for the difference.
 
 I finally got a download of a newer mutt version from sunfreeware
 and will install it on the Solaris x86 platform.
 
 Assuming that its also built with slang - do you know what I need
 to do to make it work ?
 
   thanks,
 
   Brian
 
 
The version I'm using is built with slang, and colors work here (a full
256 of them).  Give it a try and we'll take it from there.

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


pgp7jMykPHeZm.pgp
Description: PGP signature


Re: mutt - color problem

2010-09-01 Thread Brian Cuttler

Chip,

I installed mutt 1.5.20 from sunfreeware and found that we
where missing several required packages, including slang.

I installed and mutt seems to open my outbox ok, That is
the index displays correctly with header and footer inverse
and the index bar being visible.

Typically the outbox does not show messages based on my
color highlighting rules, but based on prior behavor things
are looking good.

I ran into what I suspect is a syntax error with the inbox
when I invoke mutt with no arguments.

Bad IDN imaps.wadsworth.org.

.muttrc file beings this way.

[curie] ~ 233 more .muttrc
set spoolfile=imap://imaps.wadsworth.org/INBOX
set folder=imap://imaps.wadsworth.org/

I'm looking online now, don't know for sure that the error
is where I'm looking (or what IDN stands for) but the .muttrc
file is static and works under v1.5.17 (prior version on
solaris x86) and 1.4.1i on Solaris sparc.

thanks,

Brian


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.




Re: mutt - color problem

2010-09-01 Thread Chip Camden
Quoth Brian Cuttler on Wednesday, 01 September 2010:
 Chip,
 
 I installed mutt 1.5.20 from sunfreeware and found that we
 where missing several required packages, including slang.
 
 I installed and mutt seems to open my outbox ok, That is
 the index displays correctly with header and footer inverse
 and the index bar being visible.
 
 Typically the outbox does not show messages based on my
 color highlighting rules, but based on prior behavor things
 are looking good.
 
 I ran into what I suspect is a syntax error with the inbox
 when I invoke mutt with no arguments.
 
 Bad IDN imaps.wadsworth.org.
 
 .muttrc file beings this way.
 
 [curie] ~ 233 more .muttrc
 set spoolfile=imap://imaps.wadsworth.org/INBOX
 set folder=imap://imaps.wadsworth.org/
 
 I'm looking online now, don't know for sure that the error
 is where I'm looking (or what IDN stands for) but the .muttrc
 file is static and works under v1.5.17 (prior version on
 solaris x86) and 1.4.1i on Solaris sparc.
 
   thanks,
 
   Brian
 

I have no experience with IMAP, so others will need to help you there.

Glad to hear that the screen attributes are working properly, though.

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


pgpPYAgiqQjGS.pgp
Description: PGP signature


Re: mutt - color problem

2010-08-31 Thread Chip Camden
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 HealthHelp 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


pgp3ieSYHRdBK.pgp
Description: PGP signature


Re: mutt - color problem

2010-08-31 Thread Brian Cuttler

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 HealthHelp 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 HealthHelp 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.




Re: mutt - color problem

2010-08-31 Thread Will Fiveash
On Tue, Aug 31, 2010 at 01:56:01PM -0400, Brian Cuttler wrote:
 
 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.

When you ssh in to the server what does:

env|grep TERM

output?

If the TERM is xterm, perhaps also exporting COLORTERM=xterm-color
will help.
-- 
Will Fiveash


Re: mutt - color problem

2010-08-31 Thread Chip Camden
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 HealthHelp 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 HealthHelp 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


pgpnWVqxZ6x8o.pgp
Description: PGP signature


Re: mutt - color problem

2010-08-31 Thread Brian Cuttler

Will,

I'd tried term vt100 and dtterm, setting both xterm and xterm-color
env vars I now get a black block cursor in the last column of the
index as I move up and down the message index.

looking more and more like a termcap issue... I'll see if there are
other vt100 or dtterm color settings as well.

thanks,

Brian

On Tue, Aug 31, 2010 at 01:40:39PM -0500, Will Fiveash wrote:
 On Tue, Aug 31, 2010 at 01:56:01PM -0400, Brian Cuttler wrote:
  
  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.
 
 When you ssh in to the server what does:
 
 env|grep TERM
 
 output?
 
 If the TERM is xterm, perhaps also exporting COLORTERM=xterm-color
 will help.
 -- 
 Will Fiveash
---
   Brian R Cuttler brian.cutt...@wadsworth.org
   Computer Systems Support(v) 518 486-1697
   Wadsworth Center(f) 518 473-6384
   NYS Department of HealthHelp 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.




Re: mutt - color problem

2010-08-31 Thread Brian Cuttler

Will,

Here is a crazy test. from the system I'd ssh'd into, I ssh'd
to a linux box where, the # ls command there has an option to
display different types of files in different colors. That worked
perfectly.

Term there was xterm and there was also the addtional env var
of COLORTERM set to 1.

By using # ssh -X, and then # ssh -X again I'm avoiding the
termcap settings in the intermediate host though, aren't I ?

For a test like that the middle man's problems are simply ignored. right ?



On Tue, Aug 31, 2010 at 01:40:39PM -0500, Will Fiveash wrote:
 On Tue, Aug 31, 2010 at 01:56:01PM -0400, Brian Cuttler wrote:
  
  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.
 
 When you ssh in to the server what does:
 
 env|grep TERM
 
 output?
 
 If the TERM is xterm, perhaps also exporting COLORTERM=xterm-color
 will help.
 -- 
 Will Fiveash
---
   Brian R Cuttler brian.cutt...@wadsworth.org
   Computer Systems Support(v) 518 486-1697
   Wadsworth Center(f) 518 473-6384
   NYS Department of HealthHelp 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.




Re: mutt - color problem

2010-08-31 Thread Brian Cuttler


From Chip Camden

 Try this at a shell prompt:
 
 echo `tput AF 1`hello`tput me` 
 
 hello should be in red.

Chip - B/W only, plus the errors. I'm guessing that the
errors tell us where the root of the problem is.

Ok, I'm guessing that the errors will tells someone who
is not me where the error lies.


[curie] ~ 212 printenv | grep TER
TERM=xterm
COLORTERM=1

[curie] ~ 213 echo `tput AF 1`hello`tput me`
tput: unknown terminfo capability 'AF'
tput: unknown terminfo capability 'me'
hello



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 HealthHelp 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 HealthHelp 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| 
 

Re: mutt - color problem

2010-08-31 Thread Chip Camden
Quoth Brian Cuttler on Tuesday, 31 August 2010:
 From Chip Camden
 
  Try this at a shell prompt:
  
  echo `tput AF 1`hello`tput me` 
  
  hello should be in red.
 
 Chip - B/W only, plus the errors. I'm guessing that the
 errors tell us where the root of the problem is.
 
 Ok, I'm guessing that the errors will tells someone who
 is not me where the error lies.
 
 
 [curie] ~ 212 printenv | grep TER
 TERM=xterm
 COLORTERM=1
 
 [curie] ~ 213 echo `tput AF 1`hello`tput me`
 tput: unknown terminfo capability 'AF'
 tput: unknown terminfo capability 'me'
 hello
 
 
 
 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 HealthHelp 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 HealthHelp 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` 
 

Re: mutt - color problem

2010-08-31 Thread Brian Cuttler

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 HealthHelp 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 HealthHelp 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 HealthHelp Desk 518 473-0773



IMPORTANT NOTICE: This e-mail and any 

Re: mutt - color problem

2010-08-31 Thread Chip Camden
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 HealthHelp 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 HealthHelp 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 

Re: mutt - color problem

2010-08-31 Thread Will Fiveash
On Tue, Aug 31, 2010 at 02:54:39PM -0400, Brian Cuttler wrote:
 
 Will,
 
 Here is a crazy test. from the system I'd ssh'd into, I ssh'd
 to a linux box where, the # ls command there has an option to
 display different types of files in different colors. That worked
 perfectly.
 
 Term there was xterm and there was also the addtional env var
 of COLORTERM set to 1.
 
 By using # ssh -X, and then # ssh -X again I'm avoiding the
 termcap settings in the intermediate host though, aren't I ?
 
 For a test like that the middle man's problems are simply ignored. right ?

Beyond my guessing about COLORTERM I'm not sure what the problem is.
You may want to look at the terminfo.4 man page and the See Also pages.

I used to run Solaris 10 and used a version of mutt that I built myself
that was using slang instead of curses (not sure why at this point).
These days I'm running a internal developer build of Solaris which has a
native version of libncurses so I've compiled the latest developer
version of mutt to use that.  Here are the shared libs that mutt is
currently linked to:

libncurses.so.5 =   /usr/gnu/lib/libncurses.so.5
libssl.so.0.9.8 =   /lib/libssl.so.0.9.8
libcrypto.so.0.9.8 =/lib/libcrypto.so.0.9.8
libz.so.1 = /lib/libz.so.1
libsasl.so.1 =  /usr/lib/libsasl.so.1
libgdbm.so.3 =  /usr/lib/libgdbm.so.3
libidn.so.11 =  /usr/lib/libidn.so.11
libsocket.so.1 =/lib/libsocket.so.1
libnsl.so.1 =   /lib/libnsl.so.1
libc.so.1 = /lib/libc.so.1
libmd.so.1 =/lib/libmd.so.1
libmp.so.2 =/lib/libmp.so.2
libm.so.2 = /lib/libm.so.2

My TERM is xterm when I ssh into a Solaris system.  Note that I do not
have to set COLORTERM in order to have mutt display color.

I have a shell script wrapper for mutt so it can find the
/usr/gnu/lib/libncurses.so.5 lib.  It basically looks like:

#!/usr/bin/ksh -p
export LD_LIBRARY_PATH=/usr/gnu/lib
exec $HOME/bin/$(uname -p)/mutt $@
# end of script

I have the binary version of mutt in $HOME/bin/i386/

-- 
Will Fiveash


Re: mutt - color problem

2010-08-31 Thread Brian Cuttler

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 HealthHelp 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 HealthHelp 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 

Re: mutt - color problem

2010-08-31 Thread Chip Camden
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 HealthHelp 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 HealthHelp Desk 518 473-0773
 
 
 
 IMPORTANT NOTICE: This e-mail and any attachments may contain
 confidential or sensitive information which 

Re: mutt - color problem

2010-08-31 Thread Brian Cuttler
On Tue, Aug 31, 2010 at 01:16:03PM -0700, Chip Camden wrote:
 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 HealthHelp 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
 

Re: mutt - color problem

2010-08-31 Thread Chip Camden
Quoth Brian Cuttler on Tuesday, 31 August 2010:
 From Chip Camden
 
  Try this at a shell prompt:
  
  echo `tput AF 1`hello`tput me` 
  
  hello should be in red.
 
 Chip - B/W only, plus the errors. I'm guessing that the
 errors tell us where the root of the problem is.
 
 Ok, I'm guessing that the errors will tells someone who
 is not me where the error lies.
 
 
 [curie] ~ 212 printenv | grep TER
 TERM=xterm
 COLORTERM=1
 
 [curie] ~ 213 echo `tput AF 1`hello`tput me`
 tput: unknown terminfo capability 'AF'
 tput: unknown terminfo capability 'me'
 hello
 
 
 
 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 HealthHelp 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 HealthHelp 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` 
 

Re: mutt - color problem

2010-08-31 Thread Chip Camden
Quoth Brian Cuttler on Tuesday, 31 August 2010:
 On Tue, Aug 31, 2010 at 01:16:03PM -0700, Chip Camden wrote:
  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 HealthHelp 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 | 

Re: mutt - color problem

2010-08-31 Thread Nicolas Williams
May I suggest that trimming some of the quoted material in these
messages?  It'd make it easier to read the thread, and maybe help out.

Nico
-- 


Re: mutt - color problem

2010-08-31 Thread Nicolas Williams
BTW, I use screen in gnome-terminal.

I notice the following:

 - TERM is screen-bce;

 - VIM works fine, handles colors;

 - Mutt built with S-Lang does not start unless I set TERM to xterm or
   xterm-color; Mutt complains that Key sequence is too long,
   SLcurses_initscr: init failed;

 - If I set TERM=xterm then VIM thinks the terminal is monochrome;

 - If I set TERM=xterm then Mutt does produce colors;

 - If I set TERM=xterm-color then both, VIM and Mutt handle color.

Weird, no?  This is almost certainly a result of using different APIs
(VIM uses curses, Mutt uses S-Lang).  I believe my colleague Will F. has
shown that Mutt works fine with curses (ncurses).

This is all on Solaris.

Nico
-- 


Re: mutt - color problem

2010-08-31 Thread Chip Camden
Quoth Nicolas Williams on Tuesday, 31 August 2010:
 BTW, I use screen in gnome-terminal.
 
 I notice the following:
 
  - TERM is screen-bce;
 
  - VIM works fine, handles colors;
 
  - Mutt built with S-Lang does not start unless I set TERM to xterm or
xterm-color; Mutt complains that Key sequence is too long,
SLcurses_initscr: init failed;
 
  - If I set TERM=xterm then VIM thinks the terminal is monochrome;
 
  - If I set TERM=xterm then Mutt does produce colors;
 
  - If I set TERM=xterm-color then both, VIM and Mutt handle color.
 
 Weird, no?  This is almost certainly a result of using different APIs
 (VIM uses curses, Mutt uses S-Lang).  I believe my colleague Will F. has
 shown that Mutt works fine with curses (ncurses).
 
 This is all on Solaris.
 
 Nico
 -- 

You could probably get mutt to start with TERM=screen-bce is termcap has
an appropriate entry for it.  I found that even though mutt with slang
uses terminfo, it queries termcap on startup.

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


pgpmauqYnEsg1.pgp
Description: PGP signature


Re: mutt - color problem

2010-08-31 Thread Nicolas Williams
On Tue, Aug 31, 2010 at 02:37:48PM -0700, Chip Camden wrote:
 You could probably get mutt to start with TERM=screen-bce is termcap has
 an appropriate entry for it.  I found that even though mutt with slang
 uses terminfo, it queries termcap on startup.

screen(1) does set TERMCAP in the environment...

There is a termcap entry for screen, but not for screen-bce.  If I add
the screen-bce entry I still get the same error, as I do if I set
TERM=screen.  Aha!  I must unset TERMCAP to make Mutt/S-Lang happy.

Nico
--