MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / isStdOutRedirected

Function isStdOutRedirected

src/Platform/src/Platform.Posix.cpp:121–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119 }
120
121 bool isStdOutRedirected()
122 {
123 // isatty returns a nonzero value if the descriptor is associated with a character device. Otherwise, isatty returns 0.
124 return isatty(fileno(stdout)) != 0;
125 }
126
127 static bool hasTerminalVT100SupportImpl()
128 {

Callers 1

enableVT100TerminalModeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected