Subject: Re: Fwd: Re: port-amd64/34282: console color is broken on amd64 when using pkgsrc/misc/screen on amd64
To: Michael Schroeder <Michael.Schroeder@informatik.uni-erlangen.de>
From: George Georgalis <george@metrumrg.com>
List: netbsd-bugs
Date: 07/03/2007 16:23:00
On Thu, May 03, 2007 at 10:36:55PM +0200, Michael Schroeder wrote:
>On Wed, Apr 25, 2007 at 05:42:07PM -0400, George Georgalis wrote:
>> I'd like to bring you in the loop for a problem I'm
>> experiencing with screen.  Colors don't work on
>> netbsd/amd64. I had thought it was a termcap or
>> client issue. but per the messages below, it's
>> looking like a screen issue.
>> 
>> We're using screen-4.0.3 from pkgsrc. Does this make
>> sense to you? Is a patch in my future?
>
>I think the fix will be to rip out the $TERMCAP setting code
>from screen. It doesn't do much good, as it doesn't work if
>you ssh to another machine and the like.

Yes, when using xterm-color this does fix it, to support color
within a screen session invoked on amd64...

 # fix colors in screen on amd64 XXX workaround
 [ "$(uname -m)" = "amd64" -a "$TERM" = "xterm-color" ] && export TERM="xterm"

Sorry, I'm not able to rip out the $TERMCAP setting code from
screen, I looked.

I've not determined how to make screen colors work on console, I
presume setting TERM="xterm" is the fix there as well.

Thanks,
// George


-- 
George Georgalis, Information Systems Scientist, Metrum Research Group
2 Tunxis Road, Suite 112, Tariffville, CT 06081; direct: 860.670.4346