summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_console.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-11-13 19:36:12 +0000
committerChristopher Faylor <me@cgf.cx>2002-11-13 19:36:12 +0000
commitc0a02a4b42accbc574e84654cd845f8971d6a298 (patch)
tree92e12cd2345ecc26c4f64806e4edea173fc8e99a /winsup/cygwin/fhandler_console.cc
parente91ec2e3e6fbe82b6b481305a15aec370006baf0 (diff)
downloadcygnal-c0a02a4b42accbc574e84654cd845f8971d6a298.tar.gz
cygnal-c0a02a4b42accbc574e84654cd845f8971d6a298.tar.bz2
cygnal-c0a02a4b42accbc574e84654cd845f8971d6a298.zip
* miscfuncs.cc (low_priority_sleep): New function. Use throughout where code
is supposed to be giving up time slice. * fhandler_console.cc (fhandler_console::read): Switch button 2/3 output escape sequences to be consistent with xterm.
Diffstat (limited to 'winsup/cygwin/fhandler_console.cc')
-rw-r--r--winsup/cygwin/fhandler_console.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc
index 5be009eb9..80ea71a43 100644
--- a/winsup/cygwin/fhandler_console.cc
+++ b/winsup/cygwin/fhandler_console.cc
@@ -412,12 +412,12 @@ fhandler_console::read (void *pv, size_t buflen)
}
else if ((mouse_event.dwButtonState & 2) != (dev_state->dwLastButtonState & 2))
{
- b = 1;
+ b = 2;
strcpy (sz, "btn2 down");
}
else if ((mouse_event.dwButtonState & 4) != (dev_state->dwLastButtonState & 4))
{
- b = 2;
+ b = 1;
strcpy (sz, "btn3 down");
}