https://github.com/naokim03/tiny-ansi-rs
TinyAnsi is a dead simple library that allows basic coloring of terminal characters.
https://github.com/naokim03/tiny-ansi-rs
ansi-terminal color rust
Last synced: 2 months ago
JSON representation
TinyAnsi is a dead simple library that allows basic coloring of terminal characters.
- Host: GitHub
- URL: https://github.com/naokim03/tiny-ansi-rs
- Owner: NaokiM03
- License: mit
- Created: 2022-07-25T14:38:13.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-25T17:06:42.000Z (almost 3 years ago)
- Last Synced: 2024-03-15T07:49:29.372Z (about 1 year ago)
- Topics: ansi-terminal, color, rust
- Language: Rust
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TinyAnsi
## About
TinyAnsi is a dead simple library that allows basic coloring of terminal characters.
There are many crates for the ansi terminal that have been created and abandoned, but none of them solve the following problem.
If that is the case, I do not need complex functionality, so I built the library on a scale such that the code can be read at a glance.https://github.com/jam1garner/owo-colors/issues/45
## How to use
```toml
# Cargo.toml[dependencies]
tiny-ansi = "0.1.0"
``````rust
use tiny_ansi::TinyAnsi;
println!("{}", "red".red());
println!(
"{}",
"bold italic red on green".bold().italic().red().on_green()
);
```## License
tiny-ansi is released under the MIT License