NetBSD Problem Report #55220

From  Thu Apr 30 22:00:26 2020
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id A582E1A9217
	for <>; Thu, 30 Apr 2020 22:00:26 +0000 (UTC)
Message-Id: <>
Date: Thu, 30 Apr 2020 22:34:03 +0200 (CEST)
From: Thomas Klausner <>
Reply-To: Thomas Klausner <>
Cc:, Roy Marples <>
Subject: Possible color problem in curses and/or py-curses
X-Send-Pr-Version: 3.95

>Number:         55220
>Category:       lib
>Synopsis:       Possible color problem in curses and/or py-curses
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 30 22:05:00 +0000 2020
>Last-Modified:  Fri May 01 06:55:01 +0000 2020
>Originator:     Thomas Klausner
>Release:        NetBSD 9.99.59
Curiosity is the very basis of education and if you tell me that
curiosity killed the cat, I say only that the cat died nobly.
- Arnold Edinborough

Architecture: x86_64
Machine: amd64
editors/fileobj is a vi for binaries.

When starting it up on a new file (e.g., "fileobj /bin/ls"), it
starts in file position zero and only that cell is colored (black
on green). When moving around, cells that are entered are coloured
blue, lightgrey, or green depending on their value.

I understand that the color should be there from the beginning. tkusumi,
please correct me if I'm wrong.

It also comes with a test mode:
fileobj --test_screen
This prints, among others:

│This should look reversed.
|This may or may not look reversed.
|This should be in black,green.

All of these lines are just white-on-black (i.e. reversed) when I start this on an xterm
or in tmux configured with screen-256color.

I'll attach a screenshot later.
So the "black,green" is just black and white.
See above.
Yes, please.

From: Thomas Klausner <>
Subject: Re: lib/55220: Possible color problem in curses and/or py-curses
Date: Fri, 1 May 2020 08:50:19 +0200

 Here's the screenshot of what I see on 9.99.59:

 Here's tkusumi's example, taken on NetBSD 9.0:



NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.