We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 421ab05 commit 88d39bdCopy full SHA for 88d39bd
core/textinput/src/textinput/TerminalDisplayUnix.cpp
@@ -105,10 +105,10 @@ namespace textinput {
105
TerminalDisplay(TerminalConfigUnix::Get().IsInteractive()),
106
fIsAttached(false), fNColors(16), fOutputID(STDOUT_FILENO)
107
{
108
- if (::isatty(::fileno(stdin)) && !::isatty(fOutputID)) {
109
- // Display prompt, even if stdout is going somewhere else
110
- fOutputID = ::open("/dev/tty", O_WRONLY);
111
- SetIsTTY(true);
+ if (::isatty(fileno(stdin)) && !::isatty(fOutputID)) {
+ // Display prompt, even if stdout is going somewhere else
+ fOutputID = ::open("/dev/tty", O_WRONLY);
+ SetIsTTY(true);
112
}
113
114
HandleResizeSignal(); // needs fOutputID
0 commit comments