diff options
author | jonas <himself@jonasgunz.de> | 2018-12-27 00:45:47 +0100 |
---|---|---|
committer | jonas <himself@jonasgunz.de> | 2018-12-27 00:45:47 +0100 |
commit | 0d159812e8b27f6104e11e8a0f7606ef5728b090 (patch) | |
tree | c9d0654450f5dd3dacefa294e040799c2324636a | |
parent | 7015245de4af673af3e6fa62d5d0f9c2e0c2a8a1 (diff) | |
download | termgl-0d159812e8b27f6104e11e8a0f7606ef5728b090.tar.gz |
Changed mouse mode from X10 to X11
cInput.cpp now uses [?1000 to enable/disable mouse mode
-rw-r--r-- | cInput.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |