Subject: Re: port-amd64/34282: console color is broken on amd64 when using pkgsrc/misc/screen on amd64
To: Christos Zoulas <christos@astron.com>
From: George Georgalis <george@galis.org>
List: netbsd-bugs
Date: 09/13/2006 11:06:23
On Sun, Aug 27, 2006 at 08:48:31AM +0000, Christos Zoulas wrote:
>In article <20060825224001.3D47663B8F2@narn.NetBSD.org>,
> <gnats-bugs@NetBSD.org> wrote:
>>>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.
>
>Can you try again with current?

I still see the problem with 3.1_RC2, is that current enough?

# colorls -FGTl /
total 15722
-rw-r--r--   2 root  wheel     1831 Sep 12 15:02:34 2006 .cshrc
drwxr-xr-x   2 root  wheel      512 Sep  3 10:50:34 2006 OOPSaltroot/
drwxr-xr-x   2 root  wheel     1024 Sep  3 11:23:02 2006 OOPSbin/
-r--r--r--   1 root  wheel    55308 Sep  6 11:13:08 2006 boot
drwxr-xr-x   2 root  wheel      512 Sep 12 15:25:52 2006 OOPScommand/
drwxr-xr-x   4 root  wheel    28672 Sep 12 15:25:40 2006 OOPSdev/
drwxr-xr-x  24 root  wheel     2048 Sep 12 15:34:26 2006 OOPSetc/
drwxr-xr-x   2 root  wheel      512 Sep  6 13:29:32 2006 OOPShome/
dr-xr-xr-x   2 root  wheel      512 Sep 13 10:57:34 2006 OOPSkern/
drwxr-xr-x   2 root  wheel     1024 Sep  3 11:02:32 2006 OOPSlib/
drwxr-xr-x   2 root  wheel      512 Sep  3 11:04:34 2006 OOPSlibexec/
drwxr-xr-x   2 root  wheel      512 Sep  3 10:50:34 2006 OOPSmnt/
-rwxr-xr-x   1 root  wheel  8985519 Sep  3 11:50:18 2006 OOPSnetbsd*
drwxr-xr-t   4 root  wheel      512 Sep 12 15:25:39 2006 OOPSpackage/
dr-xr-xr-x   1 root  wheel      512 Sep 13 10:57:34 2006 OOPSproc/
drwxr-xr-x   2 root  wheel     2560 Sep  3 11:23:55 2006 OOPSrescue/
drwx------   3 root  wheel      512 Sep 13 10:57:34 2006 OOPSroot/
drwxr-xr-x   2 root  wheel     2048 Sep 12 15:25:13 2006 OOPSsbin/
drwxr-xr-x   2 root  wheel      512 Sep  3 10:50:34 2006 OOPSstand/
drwxrwxrwt   3 root  wheel      512 Sep 13 10:52:09 2006 OOPSOOPStmp/
drwxr-xr-x  18 root  wheel      512 Sep 13 10:24:20 2006 OOPSusr/
drwxr-xr-x  23 root  wheel      512 Sep 12 15:26:01 2006 OOPSvar/
# uname -a
NetBSD rock 3.1_RC2 NetBSD 3.1_RC2 (GENERIC) #0: Sun Sep  3 15:50:17 UTC 2006  builds@b1.netbsd.org:/home/builds/ab/netbsd-3-1-RC2/amd64/200609031430Z-obj/home/builds/ab/netbsd-3-1-RC2/src/sys/arch/amd64/compile/GENERIC amd64

I've just built a netbsd-3 kernel, and will build a netbsd-3
world.  Will confirm results for that. If I'm not close enough to
HEAD, is there a particular file I should checkout or do I need
world?

// George


-- 
George Georgalis, systems architect, administrator <IXOYE><