GTL/src/ansi.zig

60 lines
1.8 KiB
Zig
Raw Normal View History

2026-07-12 19:46:40 +01:00
// --- RESET ---
pub const reset = "\x1b[0m";
// --- STYLES ---
pub const bold = "\x1b[1m";
pub const dim = "\x1b[2m";
pub const italic = "\x1b[3m";
pub const underline = "\x1b[4m";
pub const slow_blink = "\x1b[5m";
pub const rapid_blink = "\x1b[6m";
pub const invert = "\x1b[7m";
pub const hidden = "\x1b[8m";
pub const strikethrough = "\x1b[9m";
// --- STYLE RESETS ---
pub const bold_off = "\x1b[22m";
pub const dim_off = "\x1b[22m";
pub const italic_off = "\x1b[23m";
pub const underline_off = "\x1b[24m";
pub const blink_off = "\x1b[25m";
pub const invert_off = "\x1b[27m";
pub const hidden_off = "\x1b[28m";
pub const strikethrough_off = "\x1b[29m";
// --- FOREGROUND ---
pub const black = "\x1b[30m";
pub const red = "\x1b[31m";
pub const green = "\x1b[32m";
pub const yellow = "\x1b[33m";
pub const blue = "\x1b[34m";
pub const purple = "\x1b[35m";
pub const cyan = "\x1b[36m";
pub const white = "\x1b[37m";
pub const bright_black = "\x1b[90m";
pub const bright_red = "\x1b[91m";
pub const bright_green = "\x1b[92m";
pub const bright_yellow = "\x1b[93m";
pub const bright_blue = "\x1b[94m";
pub const bright_purple = "\x1b[95m";
pub const bright_cyan = "\x1b[96m";
pub const bright_white = "\x1b[97m";
// --- BACKGROUND ---
pub const bg_black = "\x1b[40m";
pub const bg_red = "\x1b[41m";
pub const bg_green = "\x1b[42m";
pub const bg_yellow = "\x1b[43m";
pub const bg_blue = "\x1b[44m";
pub const bg_purple = "\x1b[45m";
pub const bg_cyan = "\x1b[46m";
pub const bg_white = "\x1b[47m";
pub const bg_bright_black = "\x1b[100m";
pub const bg_bright_red = "\x1b[101m";
pub const bg_bright_green = "\x1b[102m";
pub const bg_bright_yellow = "\x1b[103m";
pub const bg_bright_blue = "\x1b[104m";
pub const bg_bright_purple = "\x1b[105m";
pub const bg_bright_cyan = "\x1b[106m";
pub const bg_bright_white = "\x1b[107m";