NetBSD Problem Report #44110

From dholland@eecs.harvard.edu  Thu Nov 18 06:14:12 2010
Return-Path: <dholland@eecs.harvard.edu>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id A09A863BA98
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 18 Nov 2010 06:14:12 +0000 (UTC)
Message-Id: <20101118061044.A61EFF8FF@tanaqui.eecs.harvard.edu>
Date: Thu, 18 Nov 2010 01:10:44 -0500 (EST)
From: dholland@eecs.harvard.edu
Reply-To: dholland@eecs.harvard.edu
To: gnats-bugs@gnats.NetBSD.org
Subject: curses does not support all four playing card suit characters
X-Send-Pr-Version: 3.95

>Number:         44110
>Category:       lib
>Synopsis:       curses does not support all four playing card suit characters
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 18 06:15:00 +0000 2010
>Last-Modified:  Sat Nov 20 18:55:00 +0000 2010
>Originator:     David A. Holland
>Release:        NetBSD 5.99.39
>Organization:
>Environment:
System: NetBSD valkyrie 5.99.39 NetBSD 5.99.39 (VALKYRIE) #16: Wed Nov 17 16:50:52 EST 2010  dholland@valkyrie:/usr/src/sys/arch/amd64/compile/VALKYRIE amd64
Architecture: x86_64
Machine: amd64
>Description:

curses.h defines ACS_DIAMOND, but not ACS_HEART, ACS_CLUB, or ACS_SPADE.
(presumably because someone sometime wanted ACS_DIAMOND as a bullet
point character or the like)

This makes the user interface of canfield(6) and other card games suck.

>How-To-Repeat:

grep

>Fix:

Add them and add the necessary bits to terminfo? Many terminals and
terminal fonts do have glyphs for all four suits.

>Audit-Trail:
From: Brett Lymn <blymn@baea.com.au>
To: gnats-bugs@NetBSD.org
Cc: lib-bug-people@NetBSD.org, gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org
Subject: Re: lib/44110: curses does not support all four playing card suit characters
Date: Fri, 19 Nov 2010 14:20:36 +1030

 On Thu, Nov 18, 2010 at 06:15:00AM +0000, dholland@eecs.harvard.edu wrote:
 > 
 > curses.h defines ACS_DIAMOND, but not ACS_HEART, ACS_CLUB, or ACS_SPADE.
 > (presumably because someone sometime wanted ACS_DIAMOND as a bullet
 > point character or the like)
 > 

 I cannot find a reference to any of those ACS symbols apart from
 ACS_DIAMOND.  Checking solaris (original SYSV curses) and ncurses
 turns up nothing as does a search on google.

 > This makes the user interface of canfield(6) and other card games suck.
 > 

 no doubt about that...

 > 
 > Add them and add the necessary bits to terminfo? Many terminals and
 > terminal fonts do have glyphs for all four suits.

 Well, taking on board that it would be totally non-standard...The
 battle here is you need to identify character that will produce the
 right shape when the alternate character mode (smacs) is on.  Once
 that is found it is a matter of either extending the acsc or if the
 character is already in the string, using it.

 -- 
 Brett Lymn
 "Warning:
 The information contained in this email and any attached files is
 confidential to BAE Systems Australia. If you are not the intended
 recipient, any use, disclosure or copying of this email or any
 attachments is expressly prohibited.  If you have received this email
 in error, please notify us immediately. VIRUS: Every care has been
 taken to ensure this email and its attachments are virus free,
 however, any loss or damage incurred in using this email is not the
 sender's responsibility.  It is your responsibility to ensure virus
 checks are completed before installing any data sent in this email to
 your computer."


From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: lib/44110: curses does not support all four playing card suit
 characters
Date: Sat, 20 Nov 2010 18:50:38 +0000

 On Fri, Nov 19, 2010 at 03:55:02AM +0000, Brett Lymn wrote:
  >  > curses.h defines ACS_DIAMOND, but not ACS_HEART, ACS_CLUB, or ACS_SPADE.
  >  > (presumably because someone sometime wanted ACS_DIAMOND as a bullet
  >  > point character or the like)
  >  
  >  I cannot find a reference to any of those ACS symbols apart from
  >  ACS_DIAMOND.  Checking solaris (original SYSV curses) and ncurses
  >  turns up nothing as does a search on google.

 Right, presumably because someone wanted diamonds as bullet points but
 ignored the others...

  >  > Add them and add the necessary bits to terminfo? Many terminals and
  >  > terminal fonts do have glyphs for all four suits.
  >  
  >  Well, taking on board that it would be totally non-standard...The
  >  battle here is you need to identify character that will produce the
  >  right shape when the alternate character mode (smacs) is on.  Once
  >  that is found it is a matter of either extending the acsc or if the
  >  character is already in the string, using it.

 I don't currently see any way to make wscons print these symbols, so
 perhaps worrying about it in curses is premature.

 sigh.

 -- 
 David A. Holland
 dholland@netbsd.org

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.