Index | Thread | Search

From:
"Theo de Raadt" <deraadt@openbsd.org>
Subject:
Re: wscons 256 colour support
To:
dickey@his.com
Cc:
tech@openbsd.org
Date:
Wed, 09 Jul 2025 14:18:04 -0600

Download raw body.

Thread
Thomas Dickey <dickey@his.com> wrote:

> On Wed, Jul 09, 2025 at 03:40:39PM -0300, Crystal Kolipe wrote:
> ...
> > Until I started sending these wscons patches at the end of 2022, wscons was
> > basically superset of a subset of vt220 emulation.  In fact, it's always been
> > quite far removed from a real vt220.
> > 
> > _None_ of the terminfo entries worked correctly on the console.
> > 
> > vt220 was and is broken, as the F1 - F4 keys are incorrectly mapped amongst
> > other things, and there is no support for colour because real vt220s don't do
> > colour.
> 
> It was never correct.
>  
> > pccon was broken in various ways.  The ncv#2 entry prevents use of colour and
> > underline at the same time, which might have made sense for VGA text mode,
> > but we're in 2025 now and things have moved on.  The op parameter resets to
> > black text on white, which is unexpected for users who didn't grow up with
> > the sparc console.  Other control sequences are also missing.
> 
> pccon is the place to make fixes, though, since it applies to OpenBSD.
> Others have noticed that:
> 
> https://lists.gnu.org/archive/html/bug-ncurses/2015-11/msg00010.html

That cannot be correct, because:

console "/usr/libexec/getty std.9600"   vt220   off secure
ttyC0   "/usr/libexec/getty std.9600"   vt220   on  secure
ttyC1   "/usr/libexec/getty std.9600"   vt220   on  secure
ttyC2   "/usr/libexec/getty std.9600"   vt220   on  secure
ttyC3   "/usr/libexec/getty std.9600"   vt220   on  secure
ttyC4   "/usr/libexec/getty std.9600"   vt220   off secure
ttyC5   "/usr/libexec/getty std.9600"   vt220   on  secure
ttyC6   "/usr/libexec/getty std.9600"   vt220   off secure
ttyC7   "/usr/libexec/getty std.9600"   vt220   off secure
ttyC8   "/usr/libexec/getty std.9600"   vt220   off secure
ttyC9   "/usr/libexec/getty std.9600"   vt220   off secure
ttyCa   "/usr/libexec/getty std.9600"   vt220   off secure
ttyCb   "/usr/libexec/getty std.9600"   vt220   off secure


We don't declare pccon.  We are never going to declare our ttys as
pccon.  It is a non-standard name.

So trying to achieve "pccon", whatever that is... what is the goal???