diff options
author | Valentin Popov <valentin@popov.link> | 2024-01-08 00:21:28 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2024-01-08 00:21:28 +0300 |
commit | 1b6a04ca5504955c571d1c97504fb45ea0befee4 (patch) | |
tree | 7579f518b23313e8a9748a88ab6173d5e030b227 /vendor/supports-unicode/README.md | |
parent | 5ecd8cf2cba827454317368b68571df0d13d7842 (diff) | |
download | fparkan-1b6a04ca5504955c571d1c97504fb45ea0befee4.tar.xz fparkan-1b6a04ca5504955c571d1c97504fb45ea0befee4.zip |
Initial vendor packages
Signed-off-by: Valentin Popov <valentin@popov.link>
Diffstat (limited to 'vendor/supports-unicode/README.md')
-rw-r--r-- | vendor/supports-unicode/README.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/vendor/supports-unicode/README.md b/vendor/supports-unicode/README.md new file mode 100644 index 0000000..3da5ae5 --- /dev/null +++ b/vendor/supports-unicode/README.md @@ -0,0 +1,19 @@ +Detects whether a terminal supports unicode. + +This crate is a Rust port mashing together +[@sindresorhus](https://github.com/sindresorhus)' +[`is-unicode-supported`](https://npm.im/is-unicode-supported) and +[@iarna](https://github.com/iarna)'s +[`has-unicode`](https://npm.im/has-unicode) NPM packages. + +## Example + +```rust +use supports_unicode::Stream; + +if supports_unicode::on(Stream::Stdout) { + println!("stdout supports unicode output"); +} else { + println!("no unicode, please"); +} +``` |