We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c5c39c commit b1c8388Copy full SHA for b1c8388
cpp-terminal/platforms/terminal.cpp
@@ -84,7 +84,7 @@ void Term::Terminal::setRawMode()
84
flags &= ~(ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT);
85
if(!SetConsoleMode(Private::std_cin.getHandler(), flags)) { throw Term::Exception("SetConsoleMode() failed"); }
86
#else
87
- if(Private::std_cout.getHandler() >= 0)
+ if(!Private::std_cout.isNull())
88
{
89
::termios raw;
90
if(tcgetattr(Private::std_cout.getHandler(), &raw) == -1) { throw Term::Exception("tcgetattr() failed"); }
0 commit comments