[][src]Macro anes::sgr

macro_rules! sgr {
    ($($arg:expr),*) => { ... };
}

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