Searched hist:"459 a707eccc74b729beafceaef882c9ed1bcbc97" (Results 1 – 2 of 2) sorted by relevance
/openbmc/qemu/ui/ |
H A D | curses_keys.h | diff 459a707eccc74b729beafceaef882c9ed1bcbc97 Mon Mar 04 15:05:32 CST 2019 Samuel Thibault <samuel.thibault@ens-lyon.org> curses: support wide input
This makes use of wide curses functions instead of 8bit functions. This allows to type e.g. accented letters.
Unfortunately, key codes are then returned with values that could be confused with wide characters by ncurses, so we need to add a maybe_keycode variable to know whether the returned value is a key code or a character (curses with wide support), or possibly both (curses without wide support).
The translation tables thus also need to be separated into key code translation and character translation. The curses2foo helper makes it easier to use them.
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Message-id: 20190304210532.7840-1-samuel.thibault@ens-lyon.org Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
H A D | curses.c | diff 459a707eccc74b729beafceaef882c9ed1bcbc97 Mon Mar 04 15:05:32 CST 2019 Samuel Thibault <samuel.thibault@ens-lyon.org> curses: support wide input
This makes use of wide curses functions instead of 8bit functions. This allows to type e.g. accented letters.
Unfortunately, key codes are then returned with values that could be confused with wide characters by ncurses, so we need to add a maybe_keycode variable to know whether the returned value is a key code or a character (curses with wide support), or possibly both (curses without wide support).
The translation tables thus also need to be separated into key code translation and character translation. The curses2foo helper makes it easier to use them.
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Message-id: 20190304210532.7840-1-samuel.thibault@ens-lyon.org Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|