Added -g, --oldmouse option to support of NORMAL/BUTTON_EVENT mouse type.
commit67c35a20a6d90c8d026b14f842cafde464c54c70
authorIlia Maslakov <il.smind@gmail.com>
Wed, 7 Sep 2011 07:17:03 +0000 (7 11:17 +0400)
committerAndrew Borodin <aborodin@vmail.ru>
Thu, 8 Sep 2011 10:12:10 +0000 (8 14:12 +0400)
treedcbe9cec745d13acdc29f99b32b2dacb67d0d08f
parentbfbe9b94ae43aa32d4aa3067d9bd3b341012ef4f
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/global.c
lib/global.h
lib/tty/tty.c
src/args.c