sgr-const

Crates.iosgr-const
lib.rssgr-const
version0.1.0
sourcesrc
created_at2020-08-13 15:21:53.611143
updated_at2020-08-13 15:21:53.611143
descriptionA convenience macro to generate string sequences for colored and stylized terminal output.
homepage
repositoryhttps://gitdab.com/LunarLambda/sgr-const
max_upload_size
id276279
size21,307
Luna Saphie Mittelbach (LunarLambda)

documentation

https://docs.rs/sgr-const

README

sgr_const!

Documentation

A macro to generate SGR control sequences for colored output in terminal applications.

[dependencies]
sgr-const = "0.1"

Example

sgr_const::sgr_const! {
    STYLE_CYAN = Bold | CyanFg;
    STYLE_NONE = Reset;
}

println!("{}{}{}", STYLE_CYAN, "This text will be cyan if your terminal supports it!", STYLE_NONE);

License

This project is licensed under the Mozilla Public License, Version 2.0. See LICENSE for more information.

Commit count: 0

cargo fmt