bug-ncurses
[Top][All Lists]
Advanced

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

Re: [Ncurses] Unicode characters in menu


From: Yuriy Dmitrishin
Subject: Re: [Ncurses] Unicode characters in menu
Date: Fri, 13 Jan 2012 17:42:41 +0200


Thanks for your help. It was my mistake when I compiled with -lncursesw -lmenu instead of -lncursesw -lmenuw.

Btw, does menu library support color in menu items or I should write my own implementation?
2012/1/13 Thomas Dickey <address@hidden>
On Fri, Jan 13, 2012 at 09:11:42AM +0200, Yuriy Dmitrishin wrote:
> Hello.
>
> Is there any way to display unicode characters as menu elements with menu
> library? I've hardly read docs but still can't find solution.

The ncurses test-programs (ncurses and demo_menus) are supposed to do this.
I recall testing the functionality by modifying the menu data to use some
UTF-8 example.  You should be able to see this work by building demo_menus
(with ncursesw/menuw) and giving the name of your menu-file from the command-line,
e.g.,

       ./demo_menus utf8menus.txt

makes each line in utf8menus.txt become an entry in the "Select" menu.

--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAk8QOGUACgkQcCNT4Pfkjtu2YACfcyuUv3pulYznz2SOMrj5w81/
U38AoMmdw4aYEa+Avip51U8RnbZhUmlA
=WX8L
-----END PGP SIGNATURE-----




--
Regards,
Yuriy Dmitrishin.


reply via email to

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