NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/44110 (curses does not support all four playing card suit characters)



The following reply was made to PR lib/44110; it has been noted by GNATS.

From: Brett Lymn <blymn%internode.on.net@localhost>
To: David Holland <dholland-bugs%netbsd.org@localhost>
Cc: gnats-bugs%netbsd.org@localhost, blymn%NetBSD.org@localhost
Subject: Re: lib/44110 (curses does not support all four playing card suit
 characters)
Date: Thu, 21 Oct 2021 16:09:39 +1030

 On Thu, Oct 21, 2021 at 12:00:53AM +0000, David Holland wrote:
 > 
 > What's the state of wide characters and unicode output? It appears
 > that the glyphs wanted are Unicode code points 0x2660, 0x2663, 0x2665,
 > and 0x2666. (Or maybe 0x2661-2.) And also there's a full card set
 > starting at 0x1F0A1.
 > 
 
 Wide characters are supported by default in NetBSD curses.  The same
 characters are defined for both narrow and wide ACS (the wide versions
 are unicode renditions of the narrow characters).  So no real difference
 there.
 
 > https://en.wikipedia.org/wiki/Playing_cards_in_Unicode
 > 
 > If these can be made to work, that would definitely be sufficient.
 > 
 
 The application should be able to add those characters using the wide
 character calls in curses.  So, yes, it should work but it is really an
 application thing not a curses library level thing.
 
 If you are wanting to extend the ACS character set it would make NetBSD
 curses non-standard and would require custom terminfo entries to support
 the extended character set *and* it would probably only work in wide
 mode.  I suspect the ACS characters defined map onto the vt100 DEC
 Special Graphics Character Set and have stayed that way ever since.
 
 -- 
 Brett Lymn
 --
 Sent from my NetBSD device.
 
 "We are were wolves",
 "You mean werewolves?",
 "No we were wolves, now we are something else entirely",
 "Oh"
 


Home | Main Index | Thread Index | Old Index