Provide a copy of stdout_isatty() on CloudABI.

CloudABI doesn't make any distinction between TTYs and ordinary pipes.
While there, remove the redundant implementation used by Redox. It can
use the same stub function.
This commit is contained in:
Ed Schouten
2018-01-02 14:22:37 +01:00
parent 04ce26a6f6
commit abced5a6b5

View File

@@ -977,12 +977,9 @@ fn use_color(opts: &TestOpts) -> bool {
} }
} }
#[cfg(target_os = "redox")] #[cfg(any(target_os = "cloudabi",
fn stdout_isatty() -> bool { target_os = "redox",
// FIXME: Implement isatty on Redox all(target_arch = "wasm32", not(target_os = "emscripten"))))]
false
}
#[cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))]
fn stdout_isatty() -> bool { fn stdout_isatty() -> bool {
false false
} }