• Home
  • Raw
  • Download

Lines Matching +full:crate +full:- +full:example

2   <h1><code>is-terminal</code></h1>
9 …="https://github.com/sunfishcode/is-terminal/actions?query=workflow%3ACI"><img src="https://github…
10 …<a href="https://crates.io/crates/is-terminal"><img src="https://img.shields.io/crates/v/is-termin…
11 …<a href="https://docs.rs/is-terminal"><img src="https://docs.rs/is-terminal/badge.svg" alt="docs.r…
15 is-terminal is a simple utility that answers one question:
20 and may support color and other special features. This crate doesn't provide
23 On Unix-family platforms, this is effectively the same as the [`isatty`]
25 high-level stream types instead of raw file descriptors.
30 This crate is derived from [the atty crate] with [PR \#51] bug fix and
31 [PR \#54] port to windows-sys applied. The only additional difference is that
32 the atty crate only accepts stdin, stdout, or stderr, while this crate accepts
33 any stream. In particular, this crate does not access any stream that is not
39 ## Example section
55 This library is tested on both Unix-family and Windows platforms.
57 To test it on a platform manually, use the provided `stdio` example program.
61 $ cargo run --example stdio
70 $ cat | cargo run --example stdio
79 $ cargo run --example stdio | cat
88 $ cargo run --example stdio 2>&1 | cat
96 This crate currently works on the version of [Rust on Debian stable], which is
99 version of this crate.
101 [`isatty`]: https://man7.org/linux/man-pages/man3/isatty.3.html
102 [the atty crate]: https://crates.io/crates/atty
103 [I/O safety]: https://github.com/rust-lang/rfcs/blob/master/text/3128-io-safety.md