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:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user