[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Line-drawing constants
From: |
Ian Lynagh |
Subject: |
Line-drawing constants |
Date: |
Tue, 16 Jul 2002 23:46:44 +0100 |
User-agent: |
Mutt/1.3.25i |
Hi,
On
http://www.opengroup.org/onlinepubs/007908799/xcurses/curses.h.html
it says
Line-drawing Constants
The <curses.h> header defines the symbolic constants shown in the
leftmost two columns of the following table for use in drawing
lines. The symbolic constants that begin with ACS_ are char
constants. The symbolic constants that begin with WACS_ are cchar_t
constants for use with the wide-character interfaces that take a
pointer to a cchar_t.
However, the ncurses code seems to define ACS_BLOCK etc as elements of
an array that is overwritten with the appropriate values for the
terminal in use. My reading of the specification was that this should
not be allowed, and the obvious acceptable implementation would define
them as integer constants used to index an array at addch time.
My reason for emailing is that I am writing code in Haskell and your
interpretation is making the curses interfacing quite inconvenient. Do
you believe it is a legitimate interpretation of the standard?
If I am looking at the wrong standard then please direct me to the
correct one.
Thanks
Ian
- Line-drawing constants,
Ian Lynagh <=