| Crates.io | rusty-termcolor |
| lib.rs | rusty-termcolor |
| version | 0.1.62 |
| created_at | 2024-08-10 11:07:53.560105+00 |
| updated_at | 2024-11-09 06:04:45.7231+00 |
| description | A light-weight terminal coloring library for Rust |
| homepage | https://github.com/pleaseful/rusty-termcolor |
| repository | |
| max_upload_size | |
| id | 1332272 |
| size | 26,464 |
Rusty TermColor is a Rust crate that provides utility functions for terminal manipulation and text formatting. It includes functionality for color manipulation, text effects, terminal control, and text formatting.
Add this to your Cargo.toml:
[dependencies]
rusty-termcolor = "0.1.62"
use rusty_termcolor::{colors::*, formatting::*, effects::*, terminal::*};
fn main() {
println_colored("Hello, Rusty TermColor!", &RED);
typewriter("This appears like it's being typed...", &EffectSettings::default(), Some(&GREEN));
clear_screen();
// ... see docs for more examples
}
Color struct for RGB color representationEffectSettings struct for customizing effect parametersSee the Usage Examples section in the detailed documentation for comprehensive examples of using Rusty TermColor's features.
show_cursor() before exiting if hide_cursor() was used.std::io for terminal I/O operationsstd::thread and std::time::Duration for timing in effectsrand crate for random number generation in some effectsterminal_size crate for getting terminal dimensionsThis project is licensed under the MIT License - see the LICENSE file for details.