1
0
Fork
You've already forked supports-unicode
0
Detects whether a terminal supports unicode.
  • Rust 100%
2024年02月03日 19:00:36 -08:00
.github meta: add funding.yml 2021年09月26日 21:16:00 -07:00
src feat(deps): Switch to std::io::IsTerminal ( #5 ) 2024年02月03日 18:55:11 -08:00
.editorconfig feat(api): initial commit 2021年09月10日 23:59:59 -07:00
.gitignore feat(api): initial commit 2021年09月10日 23:59:59 -07:00
Cargo.toml chore: Release supports-unicode version 3.0.0 2024年02月03日 19:00:36 -08:00
CHANGELOG.md docs: update changelog 2024年02月03日 19:00:24 -08:00
cliff.toml meta: fix cliff.toml 2021年09月26日 21:19:12 -07:00
LICENSE feat(api): initial commit 2021年09月10日 23:59:59 -07:00
Makefile.toml feat(api): initial commit 2021年09月10日 23:59:59 -07:00
README.md docs: make note of new MSRV in readme 2024年02月03日 18:59:56 -08:00

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

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

MSRV

This crate requires rustc 1.70.0 or later.