Added -g, --oldmouse option to support of NORMAL/BUTTON_EVENT mouse type.
commit961e4b1b36ea7f2c4c6d4ffa0bacb0f7deae0ac9
authorIlia Maslakov <il.smind@gmail.com>
Wed, 7 Sep 2011 07:17:03 +0000 (7 11:17 +0400)
committerAndrew Borodin <aborodin@vmail.ru>
Fri, 9 Sep 2011 06:52:28 +0000 (9 10:52 +0400)
tree3c6c11aa859f9ecb280677567574fcdcdf5d4cfa
parentc511bd79460fb883a4eb7d110a45fac0667fb5b3
Added -g, --oldmouse option to support of NORMAL/BUTTON_EVENT mouse type.

Required for some terminals (screen/tmux) to force needed mouse type
(BUTTON_EVENT by default).

Normal tracking mode sends an escape sequence on both button press and release.
Mouse highlight tracking notifies a program of a button press, receives a range of
lines from the program, highlights the region covered by the mouse within that
range until button release, and then sends the program the release coordinates.
It is enabled by specifying parameter 1001 to DECSET.

Button-event tracking is essentially the same as normal tracking, but xterm also
reports button-motion events. Motion events are reported only if the mouse pointer
has moved to a different character cell. It is enabled by specifying parameter 1002 to DECSET.
On button press or release, xterm sends the same codes used by normal tracking mode.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
changed mc.1.in, added description of command line options -g, --oldmouse.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
doc/man/es/mc.1.in
doc/man/hu/mc.1.in
doc/man/it/mc.1.in
doc/man/mc.1.in
doc/man/pl/mc.1.in
doc/man/ru/mc.1.in
doc/man/sr/mc.1.in
lib/tty/mouse.c
lib/tty/mouse.h
lib/tty/tty.c
src/args.c