Skip to content
Snippets Groups Projects
  • Samuel Thibault's avatar
    459a707e
    curses: support wide input · 459a707e
    Samuel Thibault authored
    
    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: default avatarSamuel Thibault <samuel.thibault@ens-lyon.org>
    Message-id: 20190304210532.7840-1-samuel.thibault@ens-lyon.org
    Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
    459a707e
    History
    curses: support wide input
    Samuel Thibault authored
    
    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: default avatarSamuel Thibault <samuel.thibault@ens-lyon.org>
    Message-id: 20190304210532.7840-1-samuel.thibault@ens-lyon.org
    Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>