tree: 9ac55867742f756878578a36192be1eb56857193 [path history] [tgz]
  1. src/
  2. .cargo-checksum.json
  3. Cargo.toml
  4. CHANGELOG.md
  5. cliff.toml
  6. LICENSE
  7. Makefile.toml
  8. README.md
vendor/supports-unicode-3.0.0/README.md

Detects whether a terminal supports unicode.

This crate is a Rust port mashing together @sindresorhus' is-unicode-supported and @iarna's has-unicode NPM packages.

Example

use supports_unicode::Stream;

if supports_unicode::on(Stream::Stdout) {
    println!("stdout supports unicode output");
} else {
    println!("no unicode, please");
}

MSRV

This crate requires rustc 1.70.0 or later.