Files
rust/library/std/src
bors 8154955321 Auto merge of #98033 - joshtriplett:is-terminal-fd-handle, r=thomcc
Add `IsTerminal` trait to determine if a descriptor or handle is a terminal

The UNIX implementation uses `isatty`. The Windows implementation uses
the same logic the `atty` crate uses, including the hack needed to
detect msys terminals.

Implement this trait for `Stdin`/`Stdout`/`Stderr`/`File` on all
platforms. On Unix, 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 01:42:28 +00:00
..
2022-08-01 20:10:40 +00:00
2022-07-18 15:06:07 +01:00
2022-09-12 19:46:51 +02:00
2022-08-18 18:07:39 -04:00
2022-10-05 03:09:43 +01:00
2022-05-27 07:36:17 -04:00
2022-03-23 05:33:44 +00:00
2022-08-18 18:07:39 -04:00
2022-04-14 01:33:13 -04:00
2022-10-04 15:19:21 +08:00
2022-09-28 21:51:09 +02:00
2022-09-26 10:14:45 +02:00
2022-10-10 17:05:59 -07:00
2022-10-07 15:21:47 +02:00
2022-10-06 09:55:32 +02:00
2022-10-09 21:44:44 -07:00
2022-10-14 12:57:56 +08:00
2022-09-26 10:14:45 +02:00