bug-ncurses
[Top][All Lists]
Advanced

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

Re: Using UTF-8 with Ncurses / Xterm ....


From: Thomas Dickey
Subject: Re: Using UTF-8 with Ncurses / Xterm ....
Date: Thu, 19 Mar 2009 18:39:13 -0400 (EDT)

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.


I am particularly interested in the U+2000 series of line drawing characters.

ncurses only "knows" about the ones which correspond to the graphic
characters defined with "ACS_xxx" names, such as ACS_ULCORNER, etc.

Would also appreciate on any advice on doing this with the latest xterm.

The uxterm script is useful for setting the options and environment
for xterm with UTF-8.


I run Slackware 12.2.


Thanks ...


--
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



_______________________________________________
Bug-ncurses mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-ncurses


--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]