Skip to content

Commit b1c8388

Browse files
committed
Fix
1 parent 3c5c39c commit b1c8388

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp-terminal/platforms/terminal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void Term::Terminal::setRawMode()
8484
flags &= ~(ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT);
8585
if(!SetConsoleMode(Private::std_cin.getHandler(), flags)) { throw Term::Exception("SetConsoleMode() failed"); }
8686
#else
87-
if(Private::std_cout.getHandler() >= 0)
87+
if(!Private::std_cout.isNull())
8888
{
8989
::termios raw;
9090
if(tcgetattr(Private::std_cout.getHandler(), &raw) == -1) { throw Term::Exception("tcgetattr() failed"); }

0 commit comments

Comments
 (0)