Ticket #2956: Newer protocol for extended mouse clicks.
commit1515c9f1525ef70fc70255ec692e22e38cc194ad
authorEgmont Koblinger <egmont@gmail.com>
Wed, 13 Feb 2013 09:37:50 +0000 (13 12:37 +0300)
committerSlava Zanko <slavazanko@gmail.com>
Wed, 13 Feb 2013 11:18:57 +0000 (13 14:18 +0300)
tree173b62205a3aecb34bb7ef54ffd41780e449f164
parent0501ac9ba62585aaa46feb1a7865fbdd9beb2ac3
Ticket #2956: Newer protocol for extended mouse clicks.

A followup extension, "SGR 1006" was invented by xterm, to overcome some
of the shortcomings of the previous one. It is becoming as widespread as
the previous one, and is likely to soon overtake it in popularity.

Note that most of the patch is just the removal of the huge complexity
introduced by the previous one. The previous extension didn't have a
unique prefix which made the whole parsing logic extremely complicated.
The new extension does have a unique prefix, so parsing becomes a piece
of cake. The code becomes much cleaner and much easier to maintain.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
lib/tty/key.c
lib/tty/mouse.c
lib/tty/mouse.h
lib/tty/tty.c