Files
rust/library/std/src/os
Josh Triplett 326ef470a8 Add IsTerminal trait to determine if a descriptor or handle is a terminal
The UNIX and WASI implementations use `isatty`. The Windows
implementation uses the same logic the `atty` crate uses, including the
hack needed to detect msys terminals.

Implement this trait for `File` and for `Stdin`/`Stdout`/`Stderr` and
their locked counterparts on all platforms. On UNIX and WASI, implement
it for `BorrowedFd`/`OwnedFd`. On Windows, implement it for
`BorrowedHandle`/`OwnedHandle`.

Based on https://github.com/rust-lang/rust/pull/91121

Co-authored-by: Matt Wilkinson <mattwilki17@gmail.com>
2022-10-15 00:35:38 +01:00
..
2022-08-13 17:38:01 +02:00
2022-04-14 01:33:13 -04:00
2022-04-14 01:33:13 -04:00
2022-04-14 01:33:13 -04:00
2022-04-14 01:33:13 -04:00
2022-06-13 20:44:58 -07:00
2022-04-14 01:33:13 -04:00
2022-04-14 01:33:13 -04:00
2022-04-14 01:33:13 -04:00
2022-08-13 17:38:01 +02:00
2022-04-14 01:33:13 -04:00
2022-08-13 17:38:01 +02:00
2022-04-14 01:33:13 -04:00
2022-04-14 01:33:13 -04:00
2022-04-14 01:33:13 -04:00
2022-04-14 01:33:13 -04:00
2021-09-28 11:31:47 +09:00
2022-08-29 08:31:40 -07:00