aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jonas <himself@jonasgunz.de> 2018-12-27 00:45:47 +0100
committerGravatar jonas <himself@jonasgunz.de> 2018-12-27 00:45:47 +0100
commit0d159812e8b27f6104e11e8a0f7606ef5728b090 (patch)
treec9d0654450f5dd3dacefa294e040799c2324636a
parent7015245de4af673af3e6fa62d5d0f9c2e0c2a8a1 (diff)
downloadtermgl-0d159812e8b27f6104e11e8a0f7606ef5728b090.tar.gz
Changed mouse mode from X10 to X11
cInput.cpp now uses [?1000 to enable/disable mouse mode
-rw-r--r--cInput.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cInput.cpp b/cInput.cpp
index e0aa233..2a6e11c 100644
--- a/cInput.cpp
+++ b/cInput.cpp
@@ -14,13 +14,13 @@ cInput::cInput()
write (STDOUT_FILENO, "\e[?47h", 6);
// Enable mouse tracking
- write (STDOUT_FILENO, "\e[?9h", 5);
+ write (STDOUT_FILENO, "\e[?1000h", 8);
}
cInput::~cInput()
{
//revert changes to console
- write (STDOUT_FILENO, "\e[?9l", 5);
+ write (STDOUT_FILENO, "\e[?1000l", 8);
write (STDOUT_FILENO, "\e[?47l", 6);
tcsetattr (STDIN_FILENO, TCSANOW, &original);
}