[Top][All Lists]

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

ncursesw: KEY_* and collisions with unicode chars

From: Felix Natter
Subject: ncursesw: KEY_* and collisions with unicode chars
Date: Sun, 01 Jul 2012 16:23:59 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)


a user of GTypist reported that he cannot enter a Polish character
because it will be interpreted as backspace (KEY_BACKSPACE):

> I noticed that it is not possible to input one of the Polish diacritic
> letters 'c with acute' (unicode 0x107 = 263) because it interferes
> with KEY_BACKSPACE defined in ncurses.h (0407 = 263)

How can I tell the difference between KEY_BACKSPACE and unicode
0x107 (or can I teach ncursesw to return 0x8 for backspace)?

The 'get_wch' manpage mentions KEY_CODE_YES, but IMHO this is just
a bit that is set is a wchar_t contains a KEY_*, thus colliding with
unicode 0x107.

Felix Natter

reply via email to

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