diff options
author | Christopher Faylor <me@cgf.cx> | 2000-12-16 06:11:02 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-12-16 06:11:02 +0300 |
commit | 085ec17c5d2dd41d53acaed455fb238116092b32 (patch) | |
tree | 07df9122bb752bdd1c27b031368313341af7147d /winsup/cygwin/select.cc | |
parent | 7fbcbc95929b933657d8b69673c42d1dd84408b0 (diff) |
* fhandler_console.cc (read): Add support for xterm-style mouse event
reporting.
(fhandler_console::char_command): Honor mouse events.
(fhandler_console::open): Enable mouse input events.
(fhandler_console::input_tcsetattr): Ditto.
* select.cc (peek_console): Add check for mouse events.
Diffstat (limited to 'winsup/cygwin/select.cc')
-rw-r--r-- | winsup/cygwin/select.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc index 83312714b..168f92c8e 100644 --- a/winsup/cygwin/select.cc +++ b/winsup/cygwin/select.cc @@ -635,6 +635,10 @@ peek_console (select_record *me, int ignra) { if (irec.EventType == WINDOW_BUFFER_SIZE_EVENT) kill_pgrp (fh->tc->getpgid (), SIGWINCH); + else if (irec.EventType == MOUSE_EVENT && + (irec.Event.MouseEvent.dwEventFlags == 0 || + irec.Event.MouseEvent.dwEventFlags == DOUBLE_CLICK)) + return me->read_ready = 1; else if (irec.EventType == KEY_EVENT && irec.Event.KeyEvent.bKeyDown == TRUE && (irec.Event.KeyEvent.uChar.AsciiChar || get_nonascii_key (irec, tmpbuf))) return me->read_ready = 1; |