terminal-paint

Crates.ioterminal-paint
lib.rsterminal-paint
version1.0.0
sourcesrc
created_at2022-12-28 13:53:40.890937
updated_at2022-12-28 14:13:44.598596
descriptionlibrary that simplifies printing colorful text to your console
homepage
repository
max_upload_size
id746856
size6,362
vetrenyy (d-vetrenyy)

documentation

README

terminal-paint

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+)

Example

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);

License

This crate is distributed under the MIT license. https://opensource.org/licenses/MIT

Commit count: 0

cargo fmt