This is the mail archive of the cygwin-patches@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Mouse support


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]