int PDC_return_key_modifiers(bool flag);
Description:
- With the getch(), wgetch(), mvgetch(), and mvwgetch() functions,
- a character is read from the terminal associated with the window.
- In nodelay mode, if there is no input waiting, the value ERR is
- returned. In delay mode, the program will hang until the system
- passes text through to the program. Depending on the setting of
- cbreak(), this will be after one character or after the first
- newline. Unless noecho() has been set, the character will also
+ With the getch(), wgetch(), mvgetch(), and mvwgetch() functions,
+ a character is read from the terminal associated with the window.
+ In nodelay mode, if there is no input waiting, the value ERR is
+ returned. In delay mode, the program will hang until the system
+ passes text through to the program. Depending on the setting of
+ cbreak(), this will be after one character or after the first
+ newline. Unless noecho() has been set, the character will also
be echoed into the designated window.
If keypad() is TRUE, and a function key is pressed, the token for
If nodelay(win, TRUE) has been called on the window and no input
is waiting, the value ERR is returned.
- ungetch() places ch back onto the input queue to be returned by
+ ungetch() places ch back onto the input queue to be returned by
the next call to wgetch().
- flushinp() throws away any type-ahead that has been typed by the
+ flushinp() throws away any type-ahead that has been typed by the
user and has not yet been read by the program.
- 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
- getch(). Use the macros PDC_KEY_MODIFIER_* to determine which
- modifier(s) were set. PDC_return_key_modifiers() tells getch()
- to return modifier keys pressed alone as keystrokes (KEY_ALT_L,
+ 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
+ getch(). Use the macros PDC_KEY_MODIFIER_* to determine which
+ modifier(s) were set. PDC_return_key_modifiers() tells getch()
+ to return modifier keys pressed alone as keystrokes (KEY_ALT_L,
etc.). These may not work on all platforms.
- NOTE: getch() and ungetch() are implemented as macros, to avoid
+ NOTE: getch() and ungetch() are implemented as macros, to avoid
conflict with many DOS compiler's runtime libraries.
Return Value:
- These functions return ERR or the value of the character, meta
+ These functions return ERR or the value of the character, meta
character or function key token.
Portability X/Open BSD SYS V
else
if (win->_delayms)
{
- /* Can't really do millisecond intervals, so delay in
+ /* Can't really do millisecond intervals, so delay in
1/20ths of a second (50ms) */
waitcount = win->_delayms / 50;
waitcount = 1;
}
- /* refresh window when wgetch is called if there have been changes
+ /* refresh window when wgetch is called if there have been changes
to it and it is not a pad */
if (!(win->_flags & _PAD) && ((!win->_leaveit &&
if (!win->_use_keypad)
key = -1;
- /* filter mouse events; translate mouse clicks in the slk
+ /* filter mouse events; translate mouse clicks in the slk
area to function keys */
else if (key == KEY_MOUSE)