[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using UTF-8 with Ncurses / Xterm ....
From: |
Ben Duncan |
Subject: |
Re: Using UTF-8 with Ncurses / Xterm .... |
Date: |
Fri, 20 Mar 2009 09:59:14 -0500 |
User-agent: |
Thunderbird 2.0.0.19 (X11/20081209) |
Ok, thanks, Am on the right track. Update my ncurses library as well
as xterm.
Now, what I am trying to figure out is how to display some of the
more elaborate characters in UTF-8 ...
For example:
http://www.fileformat.info/info/unicode/char/search.htm?q=arrow&preview=entity
Shows me the "ARROW" sets. Let say i want to display the character as defined
as :
Unicode Character 'COMBINING ANTICLOCKWISE ARROW ABOVE' (U+20D4)
How would I go about doing that with addch ?
Would it be something like : addch( 0x20d4) ?
Thanks ...
Thomas Dickey
On Thu, 19 Mar 2009, Ben Duncan wrote:
Can anyone point me to samples or documentation on how to
write C programs using UTF-8 for ncurses .
linking against ncursesw, and calling
setlocale(LC_ALL, "");
is enough to make most programs display properly in UTF-8.
Doing input can be more complicated.
The test programs in ncurses' source provide a variety of examples.
<SNIP>
--
Ben Duncan - Business Network Solutions, Inc. 336 Elton Road Jackson MS, 39212
"Never attribute to malice, that which can be adequately explained by stupidity"
- Hanlon's Razor
- Using UTF-8 with Ncurses / Xterm ...., Ben Duncan, 2009/03/19
- Re: Using UTF-8 with Ncurses / Xterm ...., Thomas Dickey, 2009/03/19
- Re: Using UTF-8 with Ncurses / Xterm ....,
Ben Duncan <=
- Re: Using UTF-8 with Ncurses / Xterm ...., Thomas Dickey, 2009/03/20
- Re: Using UTF-8 with Ncurses / Xterm ...., Ben Duncan, 2009/03/20
- Re: Using UTF-8 with Ncurses / Xterm ...., Thomas Dickey, 2009/03/20
- Re: Using UTF-8 with Ncurses / Xterm ...., Ben Duncan, 2009/03/20
- Re: Using UTF-8 with Ncurses / Xterm ...., Brian Raiter, 2009/03/20
- Re: Using UTF-8 with Ncurses / Xterm ...., Ben Duncan, 2009/03/20
- Re: Using UTF-8 with Ncurses / Xterm ...., Thomas Dickey, 2009/03/20
- Re: Using UTF-8 with Ncurses / Xterm ...., Ben Duncan, 2009/03/20
- Re: Using UTF-8 with Ncurses / Xterm ...., Thomas Dickey, 2009/03/20