Crates.io | sgr-const |
lib.rs | sgr-const |
version | 0.1.0 |
source | src |
created_at | 2020-08-13 15:21:53.611143 |
updated_at | 2020-08-13 15:21:53.611143 |
description | A convenience macro to generate string sequences for colored and stylized terminal output. |
homepage | |
repository | https://gitdab.com/LunarLambda/sgr-const |
max_upload_size | |
id | 276279 |
size | 21,307 |
A macro to generate SGR control sequences for colored output in terminal applications.
[dependencies]
sgr-const = "0.1"
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);
This project is licensed under the Mozilla Public License, Version 2.0. See LICENSE for more information.