[Top][All Lists]

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

Re: How to do UTF-8?

From: Thomas Dickey
Subject: Re: How to do UTF-8?
Date: Wed, 15 Mar 2006 20:08:45 -0500 (EST)

On Wed, 15 Mar 2006, Pierre Abbat wrote:

On Wednesday 15 March 2006 18:09, Thomas Dickey wrote:
The ncurses test program (see the sources test/ncurses.c) uses setlocale()
and when ncurses is configured using --enable-widec, provides examples in
ncurses.c for line-drawing, etc., in menu F.

I downloaded it with apt-get source, which applied a patch, built it and ran
the test program. It doesn't have a menu F. I reconfigured with
--enable-widec and got an F menu. I ran the A menu and got this:

If you configure using --enable-widec, there are uppercase menu entries A, B, C, E, F which perform the wide-character functions analogous to the a, b, etc., menu entries in the default configuration.

Key pressed: 0431 ę = 0x119 (printable character)

That looks like UTF-8 on a non-UTF-8 display.

Key pressed: 0431 KEY_F(17)
(I had to type that in manually! ncurses grabs all mouse clicks and I can't
highlight even if I stop it.)

The a/A menu entries enable the mouse. Usually pressing shift is all that's needed to do select/paste (though of course xterm is configurable - and that binding is not necessarily so).

The first one is "e" with ogonek (a Polish nasal vowel); the second is


Bug-ncurses mailing list

Thomas E. Dickey

reply via email to

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