| Crates.io | tinter |
| lib.rs | tinter |
| version | 0.1.0 |
| created_at | 2025-05-03 06:46:23.579689+00 |
| updated_at | 2025-05-03 06:46:23.579689+00 |
| description | ANSI Color output |
| homepage | |
| repository | https://github.com/piot/tinter |
| max_upload_size | |
| id | 1658589 |
| size | 9,963 |
It prints ANSI colored output. That is all.
This is a very minimal implementation for generating ANSI escape sequences in Rust.
Color Enum:.Style Struct:. Only foreground color nowStyledText Wrapper: wrapping your text inside glorious colors.Let's be honest, there are tons of other crates out there that do terminal coloring, and they
are generally more robust, feature-rich, and easier to use than this.
Crates like yansi, ansi_term, and termcolor.
This code is provided as open source, for anyone who might find it useful or educational. However, please note that we are not seeking contributions or feature requests. It exists primarily as a simple example of direct ANSI escape sequence generation. Feel free to use, modify, or learn from it in your own projects!
MIT
Copyright (c) Peter Bjorklund. All rights reserved.