The returned state mask will have exactly one bit set to indicate the event type. The ungetmouse function behaves analogously to ungetch . It is useful for determining what subset of the screen windows enclose the location of a mouse event. This function returns the previous interval value. The default is one fifth of a second.
All routines return the integer ERR upon failure or OK upon successful completion.
Additional fields may be added to the structure in the future. The z member in the event structure is not presently used. BUGS Mouse events under xterm will not in fact be ignored dur- ing cooked mode, if they have been enabled by wmousemask . Instead, the xterm mouse report sequence will appear in the string read. Mouse events under xterm will not be detected correctly in a window with its keypad bit off.