Programming Guide



sm_input

Opens the keyboard for data entry and menu selection

int sm_input(int initial_mode);

initial_mode
Supply IN_AUTO.

Returns

Description

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:

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.

See Also

sm_getkey, sm_isabort, sm_keyoption