]> git.lyx.org Git - features.git/blobdiff - src/support/os_unix.cpp
Allow to separately redirect stdout and stderr.
[features.git] / src / support / os_unix.cpp
index ccc04b69e2a26609573dedf8e3c790c7a16be0f4..a9ae59850cb37ecd4cc735d754572f49000fe706 100644 (file)
@@ -157,9 +157,9 @@ string const & stderrdev()
 }
 
 
-bool terminal_output()
+bool is_terminal(io_channel channel)
 {
-       return isatty(1) && isatty(2);
+       return isatty(channel);
 }