mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-25 00:05:16 +00:00
Document wget_wch() and unget_wch().
This commit is contained in:
@@ -51,6 +51,15 @@ getch
|
||||
flushinp() throws away any type-ahead that has been typed by the
|
||||
user and has not yet been read by the program.
|
||||
|
||||
wget_wch() is the wide-character version of wgetch(), available when
|
||||
PDCurses is built with the PDC_WIDE option. It takes a pointer to a
|
||||
wint_t rather than returning the key as an int, and instead returns
|
||||
KEY_CODE_YES if the key is a function key. Otherwise, it returns OK
|
||||
or ERR. It's important to check for KEY_CODE_YES, since regular wide
|
||||
characters can have the same values as function key codes.
|
||||
|
||||
unget_wch() puts a wide character on the input queue.
|
||||
|
||||
PDC_get_key_modifiers() returns the keyboard modifiers (shift,
|
||||
control, alt, numlock) effective at the time of the last getch()
|
||||
call, if PDC_save_key_modifiers(TRUE) has been called before the
|
||||
|
||||
Reference in New Issue
Block a user