Reads user input.
#include <diag/diag_screen.h> #include <diag/diag.h> long diag_read ( screen_info, wait, buffer ) screen_info_t *screen_info; int wait; char * buffer;
The diag_read subroutine reads the keyboard buffer.
Parameter | Description | |
---|---|---|
screen_info | Screen Information. This structure defines the screen type and screen ID. Only the screen_type is used. | |
short screen_type | Screen Type.
|
|
wait | If TRUE, causes this subroutine to wait until the user presses one of the keys allowed by the screen_type. If this parameter is FALSE, then this subroutine does not wait for the user input but processes anything typed ahead just as it would if the parameter were TRUE. | |
buffer | Allocated by the application. It is used to return the values entered by the user. The buffer size must not be greater than 100 bytes. (Currently not implemented). |