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: Fri, 20 Mar 2009 18:51:57 -0400 (EDT)

On Fri, 20 Mar 2009, Ben Duncan wrote:

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

That's doable - but only by changing the binary interface,
e.g., --enable-ext-colors

(I install those libraries in a separate directory, and use rpath, to avoid conflict with the system libraries).

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



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