Subject: port-amd64/34282: console color is broken on amd64 when using pkgsrc/misc/screen on amd64
To: None <port-amd64-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <george@galis.org>
List: netbsd-bugs
Date: 08/25/2006 22:40:01
>Number:         34282
>Category:       port-amd64
>Synopsis:       console color is broken on amd64 when using pkgsrc/misc/screen on amd64
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-amd64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 25 22:40:00 +0000 2006
>Originator:     George Georgalis
>Release:        3.1_RC1 or 3.0x
>Organization:
Metrum Research Group
>Environment:
NetBSD rock 3.1_RC1 NetBSD 3.1_RC1 (GENERIC) #0: Sun Aug 20 22:47:46 UTC 2006  builds@b1.netbsd.org:/home/builds/ab/netbsd-3-1-RC1/amd64/200608202102Z-obj/home/builds/ab/netbsd-3-1-RC1/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
within a screen session, any color control sequences are displayed as
"OOPS", this makes use impossible for syntax highlighting or anywhere color is used in terminal, eg 

 $ colorls -FGTl /
total 15719
-rw-r--r--   2 root  wheel     1831 Aug 23 19:05:13 2006 .cshrc
drwxr-xr-x   2 root  wheel      512 Aug 20 17:46:38 2006 OOPSaltroot/
drwxr-xr-x   2 root  wheel     1024 Aug 20 18:19:30 2006 OOPSbin/
-r--r--r--   1 root  wheel    55308 Aug 23 18:43:48 2006 boot
drwxr-xr-x   2 root  wheel      512 Aug 23 20:44:19 2006 OOPScommand/
drwxr-xr-x   4 root  wheel    28672 Aug 25 17:36:11 2006 OOPSdev/
drwxr-xr-x  24 root  wheel     2048 Aug 25 17:36:12 2006 OOPSetc/
lrwxr-xr-x   1 root  wheel        8 Aug 23 19:05:13 2006 OOPShome@ -> usr/home
dr-xr-xr-x   2 root  wheel      512 Aug 25 18:04:50 2006 OOPSkern/
drwxr-xr-x   2 root  wheel     1024 Aug 20 17:58:51 2006 OOPSlib/
drwxr-xr-x   2 root  wheel      512 Aug 20 18:00:56 2006 OOPSlibexec/
drwxr-xr-x   2 root  wheel      512 Aug 20 17:46:38 2006 OOPSmnt/
-rwxr-xr-x   1 root  wheel  8981415 Aug 20 18:47:47 2006 OOPSnetbsd*
drwxr-xr-t   4 root  wheel      512 Aug 23 20:44:06 2006 OOPSpackage/
drwxr-xr-x   2 root  wheel      512 Aug 23 18:43:36 2006 OOPSproc/
drwxr-xr-x   2 root  wheel     2560 Aug 20 18:20:52 2006 OOPSrescue/
drwx------   3 root  wheel      512 Aug 25 16:54:45 2006 OOPSroot/
drwxr-xr-x   2 root  wheel     2048 Aug 23 20:43:39 2006 OOPSsbin/
drwxr-xr-x   2 root  wheel      512 Aug 20 17:46:38 2006 OOPSstand/
drwxrwxrwt   3 root  wheel      512 Aug 25 18:03:28 2006 OOPSOOPStmp/
drwxr-xr-x  17 root  wheel      512 Aug 23 20:43:11 2006 OOPSusr/
drwxr-xr-x  23 root  wheel      512 Aug 23 20:44:29 2006 OOPSvar/

>How-To-Repeat:
on amd64 run screen, then generate any color control sequences, eg syntax highlighting in your favorite editor, colorls, etc.

I note that when I open a screen session where color works (i386),
ssh to the amd64 machine and run screen within an i386 screen window,
the colors come over fine.

>Fix:
Has been suggested there is a termcap issue for amd64.
Additional discussion on netbsd-users
http://mail-index.netbsd.org/netbsd-users/2006/07/21/0006.html