Programming Guide |
Opens the keyboard for data entry and menu selection
int sm_input(int initial_mode);
initial_mode
- Supply
IN_AUTO
.
- · The key that terminated the call to
sm_input
.
sm_input
opens the keyboard for data entry or menu selection. This function is called automatically by Panther; use it only if you write your own executive.
sm_input
calls sm_getkey to get and process keyboard entry. While in data entry mode, ASCII data can be entered into fields according to their restrictions or properties.sm_input
returns when one of these events occurs:
- A return entry field is filled or tabbed from.
- It gets a logical key with the return bit set in the routing table.
If sm_getkey returns one of these logical keys—XMIT, EXIT, HELP, or a cursor position key—a routing table determines how to process it. Routing options are set by sm_keyoption.
sm_getkey, sm_isabort, sm_keyoption