macro_rules! sgr {
($($arg:expr),*) => { ... };
}Expand description
Creates a select graphic rendition sequence.
This macro prepends provided sequence with the ESC[ (\x1B[) character and appends m character.
Also known as Set Graphics Rendition on Linux.
ยงExamples
use anes::sgr;
assert_eq!(sgr!("0"), "\x1B[0m");