[Top][All Lists]

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

Re: mixing getch() and ncursesw/forms

From: Thomas Dickey
Subject: Re: mixing getch() and ncursesw/forms
Date: Tue, 5 Dec 2006 17:43:53 -0500 (EST)

On Tue, 5 Dec 2006, Christ, Bryan wrote:

Is there any reason that I cannot use getch() with the "wide version" of
the forms library.  When I pass values from getch() into the
form_driver, numbers and KEY_XXX macros work, but alpha-characters do
not.  Do I need to be converting the values from getch() somehow?

ASCII characters (32-127) should work, but Latin-1 (160-255) and other coding can run into problems if you're using a UTF-8 locale. That's
what wget_wch() is for.

Thomas E. Dickey

reply via email to

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