Previous topic |
Next topic |
Contents |
Index |
Contact z/OS |
Library |
PDF |
BOOK
![]() Overview of graphics input functions GDDM V3R2 Base Application Programming Guide SC33-0867-01 |
|
The type of input a host computer may receive depends on the type of terminal that sent it. To help programs be device-independent, the GDDM interactive graphics calls present all input as if it comes from logical input devices, rather than physical facilities of a terminal. There are five types of logical input device:
The end user has a separate alphanumeric cursor for typing into alphanumeric fields. It is positioned using the cursor keys. If the workstation has neither a mouse, puck, nor stylus, these keys control the graphics cursor as well. The end user switches between alphanumeric and graphics cursor control by holding down the ALT key and pressing PF24. The graphics cursor is a type of device echo. In general, an echo is the immediate feedback that the workstation provides for the end user. In the case of a pick, locator, or stroke device, the echo indicates the device's position. In the case of a string device, it indicates the characters that the end user has typed in. After positioning the graphics cursor for pick, locator, or stroke data, or after typing string data, the end user must trigger the logical input device (that is, start the transmission to the host) by, for instance, pressing the ENTER key. Your program may need input from some logical devices but not others. All those from which it requires input must be enabled. GDDM discards input from devices that are not enabled. There is a special call, GSREAD, for interactive graphics I/O. It sends the current page to the terminal and waits for input, just like ASREAD. It differs from ASREAD in that it presents the input as if it came from one or more of the logical input devices. It adds elements to a graphics input queue-one element for each logical input device that has provided input. Your program accesses the queue by executing query calls, of which there is one for each type of logical device. GSREAD reads any data that the end user may have typed into alphanumeric fields, in addition to graphics data. |
![]() |