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: Ben Duncan
Subject: Re: Using UTF-8 with Ncurses / Xterm ....
Date: Fri, 20 Mar 2009 16:44:27 -0500
User-agent: Thunderbird 2.0.0.19 (X11/20081209)

JUST got the same thing done .... except on Slackware the 5.7 ncurses
is #include <curses.h>  with a ncurses.h sym linked to it.

After that .. all peaches and cream ....

Next is figuring out how to get the full 256 colors ...

Brian Raiter wrote:
Just to provide more information (or confusion) ...

On my system, the wide version of the header file is located at
/usr/include/ncursesw/ncurses.h. There is no ncursesw.h anywhere. In
order to make it all work properly, I had to:

1. #include <ncurses.h> (not ncursesw.h); and
2. add "-D_XOPEN_SOURCE_EXTENDED" and "-I/usr/include/ncursesw" to my
   compile commandline.

(And, of course, link with -lncursesw.)

When I did that, Ben's sample program worked fine.

b

.



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





reply via email to

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