This is the mail archive of the
cygwin-patches@sources.redhat.com
mailing list for the Cygwin project.
Mouse support
- To: "'cygwin-patches at cygwin dot com'" <cygwin-patches at cygwin dot com>
- Subject: Mouse support
- From: "Town, Brad" <btown at ceddec dot com>
- Date: Thu, 30 Nov 2000 16:35:08 -0500
Attached are patches that enable xterm-style mouse event reporting for
console windows.
To use mouse event reporting, make sure your console windows do not have
QuickEdit mode enabled.
To enable ncurses support for the mouse, add "kmous=\E[M" to your source
terminfo file and re-tic. I've tested it with ncurses's main test program
"ncurses" and "knights" (an ncurses test program) as supplied by the Cygwin
ncurses distribution.
Issues:
. Instead of mouse support always being enabled (as it is now), it should be
enabled when the console receives \E[?1000h and disabled when the console
receives \E[?1000l. (That's a lower-case 'L'.)
. Single-clicking and triple-clicking seem to work fine, but for ncurses's
"ncurses" program to see a double-click, you need to move the mouse
afterward. I spent the better part of the afternoon looking for the cause,
but to no avail.
Brad Town
ChangeLog.mouse
fhandler_console.cc.diff
select.cc.diff