From 0d159812e8b27f6104e11e8a0f7606ef5728b090 Mon Sep 17 00:00:00 2001 From: jonas Date: Thu, 27 Dec 2018 00:45:47 +0100 Subject: Changed mouse mode from X10 to X11 cInput.cpp now uses [?1000 to enable/disable mouse mode --- cInput.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cInput.cpp') 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); } -- cgit v1.2.3