aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cRender.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/cRender.cpp b/cRender.cpp
index 12a4101..a01418e 100644
--- a/cRender.cpp
+++ b/cRender.cpp
@@ -340,13 +340,15 @@ void cRender::setConsoleEcho(bool _enable)
SetConsoleMode(hStdin, mode );
#elif __linux__
- struct termios tty;
+ /*struct termios tty;
tcgetattr(STDIN_FILENO, &tty);
if( !_enable )
tty.c_lflag &= ~ECHO;
else
tty.c_lflag |= ECHO;
- (void) tcsetattr(STDIN_FILENO, TCSANOW, &tty);
+ (void) tcsetattr(STDIN_FILENO, TCSANOW, &tty);*/
+
+ _enable ? write (STDOUT_FILENO, "\e[?8h", 5) : write (STDOUT_FILENO, "\e[?8l", 5);
#endif //__linux__
}