From 6152506560cc3642e1956bc9e2502e8ae8aa9a5b Mon Sep 17 00:00:00 2001 From: jonas Date: Tue, 8 Jan 2019 09:31:19 +0100 Subject: moved framebuffer setup from cInput to cRender:setAlternateBufferScreen --- cInput.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cInput.cpp') diff --git a/cInput.cpp b/cInput.cpp index a862127..7a945b2 100644 --- a/cInput.cpp +++ b/cInput.cpp @@ -11,7 +11,8 @@ cInput::cInput() tcsetattr (STDIN_FILENO, TCSANOW, &raw); // Switch to the alternate buffer screen - write (STDOUT_FILENO, "\e[?47h", 6); + //write (STDOUT_FILENO, "\e[?47h", 6); + ///MOVED TO cRender // Enable mouse tracking write (STDOUT_FILENO, "\e[?1000h", 8); @@ -21,7 +22,7 @@ cInput::~cInput() { //revert changes to console write (STDOUT_FILENO, "\e[?1000l", 8); - write (STDOUT_FILENO, "\e[?47l", 6); + //write (STDOUT_FILENO, "\e[?47l", 6); tcsetattr (STDIN_FILENO, TCSANOW, &original); } -- cgit v1.2.3