IMSK

IMSK is a CAOS command to catch input events.

Usage
Syntax: IMSK mask (int)

This sets the input event mask of TARG. The mask is made by adding together the bits of the events you are interested in, from the following list:

If, once IMSK is set, any events the agent is interested in actually occur, the agent's script 73 to 79 is called (with parameters), depending on the exact event.

Syntax: IMSK

Returns, as an integer, the current input event mask of TARG.

Examples
All of the keyboard-triggered events in Creatures 3 and Docking Station, including the CAOS command line and wolfling control, use IMSK to detect keypresses.

It is usually easier not to use IMSK for text input. See PAT: TEXT.