Function ncursesw::mvwget_wch
source · [−]pub fn mvwget_wch(
handle: WINDOW,
origin: Origin
) -> Result<CharacterResult<WideChar>, NCurseswError>
Expand description
Return an enum of CharacterResult::Character(WideChar)
for most keys, or
a CharacterResult::Key(KeyBinding)
for function keys, keypad keys, and
other special keys. In no-delay mode, raise a NCurseswError
if there is
no input.
If the keypad()
function has been called with a flag
of true
the
NCurses library will interpret some keys such as function keys, keypad
keys and other special keys (this may also include such things as mouse
and resizing events) and return these wrapped in the enum CharacterResult::Key()
or a CharacterResult::Character()
for non-interpreted keys.