[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Expanding Wide Characters.
From: |
Thomas Dickey |
Subject: |
Re: Expanding Wide Characters. |
Date: |
Tue, 06 Oct 2009 20:38:58 -0400 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Tue, Oct 06, 2009 at 10:44:19AM -0500, Ben Duncan wrote:
> Tom, could you please explain to me how one would go about expanding
> the WACS character set using the WACS code set macros.
>
> Lets say i want to add the UTF x2327 (X in a rectangle box) or
> UTF x2504 (triple dash) to the WACS definations, how would I go about
> that, or am I totally missing the point of Wide versus UTF.
I used those in test/ncurses.c in the 'F' test.
They're cchar_t, so you can use them in these functions for example:
extern NCURSES_EXPORT(int) add_wch (const cchar_t *); /*
generated:WIDEC */
extern NCURSES_EXPORT(int) border_set (const cchar_t*,const cchar_t*,const
cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const
cchar_t*); /* generated:WIDEC */
extern NCURSES_EXPORT(int) box_set (WINDOW *, const cchar_t *, const cchar_t
*); /* generated:WIDEC */
extern NCURSES_EXPORT(int) hline_set (const cchar_t *, int); /*
generated:WIDEC */
extern NCURSES_EXPORT(int) vline_set (const cchar_t *, int); /*
generated:WIDEC */
extern NCURSES_EXPORT(int) whline_set (WINDOW *, const cchar_t *, int); /*
implemented */
extern NCURSES_EXPORT(int) wvline_set (WINDOW *, const cchar_t *, int); /*
implemented */
I only implemented WACS_xxx symbols for thick/double-lines for the usual
reasons: it's experimental, and only useful with Unicode.
(there's a link to current source on
http://invisible-island.net/ncurses - I've not done a rollup patch for
some time since merging Juergen's changes is still not done...)
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
signature.asc
Description: Digital signature