NetBSD Problem Report #55220

From wiz@yt.nih.at  Thu Apr 30 22:00:26 2020
Return-Path: <wiz@yt.nih.at>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id A582E1A9217
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 30 Apr 2020 22:00:26 +0000 (UTC)
Message-Id: <20200430203403.B50AF1CB6882@yt.nih.at>
Date: Thu, 30 Apr 2020 22:34:03 +0200 (CEST)
From: Thomas Klausner <wiz@NetBSD.org>
Reply-To: Thomas Klausner <wiz@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: kusumi.tomohiro@gmail.com, Roy Marples <roy@marples.name>
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
>Organization:
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
>Environment:


Architecture: x86_64
Machine: amd64
>Description:
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.
>How-To-Repeat:
See above.
>Fix:
Yes, please.

>Audit-Trail:
From: Thomas Klausner <wiz@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
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:

 https://www.netbsd.org/~wiz/fileobj-0.7.97-test-screen-netbsd.png

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

 https://leaf.dragonflybsd.org/~tkusumi/diff/netbsd/fileobj-0.7.97-test-screen.png

  Thomas

>Unformatted:

NetBSD Home
NetBSD PR Database Search

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