Files
rust/library/test/src
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
..
2020-07-27 19:51:13 -05:00
2022-08-07 11:56:12 -04:00
2022-07-22 18:39:26 -04:00
2021-09-29 21:51:46 -04:00
2021-04-25 15:51:50 -07:00
2022-01-30 10:25:40 -05:00