интерфейс курсора мыши с помощью библиотеки Curses (mouse interface through curses)
Ошибки (баги) (Bugs)
Mouse events under xterm will not in fact be ignored during
cooked mode, if they have been enabled by mousemask
. 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, since they are interpreted as a
variety of function key. Your terminfo description should have
kmous
set to '\E[M' (the beginning of the response from xterm for
mouse clicks). Other values for kmous
are permitted, but under
the same assumption, i.e., it is the beginning of the response.
Because there are no standard terminal responses that would serve
to identify terminals which support the xterm mouse protocol,
ncurses
assumes that if kmous
is defined in the terminal
description, or if the terminal description's primary name or
aliases contain the string 'xterm', then the terminal may send
mouse events. The kmous
capability is checked first, allowing
the use of newer xterm mouse protocols such as xterm's private
mode 1006.