summaryrefslogtreecommitdiff
path: root/cInput.cpp
diff options
context:
space:
mode:
authorGravatar jonas <himself@jonasgunz.de> 2019-01-08 09:31:19 +0100
committerGravatar jonas <himself@jonasgunz.de> 2019-01-08 09:31:19 +0100
commit6152506560cc3642e1956bc9e2502e8ae8aa9a5b (patch)
treeae6afb24f5ad859cddf5571e687a89a12c451008 /cInput.cpp
parent58d83d0394b81e079bfbb767936f7449235a236d (diff)
downloadtermgl-6152506560cc3642e1956bc9e2502e8ae8aa9a5b.tar.gz
moved framebuffer setup from cInput to cRender:setAlternateBufferScreen
Diffstat (limited to 'cInput.cpp')
-rw-r--r--cInput.cpp5
1 files changed, 3 insertions, 2 deletions
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);
}