Declaration:
void wgetchar(unsigned long handle);
Description
Waits for pressing an alphanumeric key on the keyboard, when the specified window has input focus, that is, is active. The pressed key code can be obtained with the LastChar function.
The entered character is automatically displayed in the window.
Example
unsigned long handle = OpenStreamWindow("Serial port");
wprintf(handle, "Press \"E\" for exit");
wgetchar(handle);
if (toupper(LastChar(handle)) == 'E') return
|