Crates.io | terminal-paint |
lib.rs | terminal-paint |
version | 1.0.0 |
source | src |
created_at | 2022-12-28 13:53:40.890937 |
updated_at | 2022-12-28 14:13:44.598596 |
description | library that simplifies printing colorful text to your console |
homepage | |
repository | |
max_upload_size | |
id | 746856 |
size | 6,362 |
rust library that simplifies printing colorful text to the console with ANSI escape. It is based on ANSI Escape Code. Should work on Linux, macOS and Windows (from Windows 10 1511+)
use terminal_paint as tp;
let my_str: String = tp::paint("hello world!", tp::YELLOW);
let my_str2: String = tp::paint("world hello", tp::ON_RED);
println!("{}, {}", my_str, my_str2);
// this will call println! and change the color of your text
tp::color_println("this is blue text", tp::BLUE);
This crate is distributed under the MIT license. https://opensource.org/licenses/MIT