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. Note that mouse events will be ignored when input is in cooked mode, and will cause an error beep when cooked mode is being simulated in a window by a function such as getstr that expects a linefeed for input-loop termination.
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 during 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.