master ohmu/fastfetch-openbsd / src / common / color.h
ohmu  ·  2026-10-15
 1#pragma once
 2
 3#define FF_COLOR_MODE_RESET "0;"
 4#define FF_COLOR_MODE_BOLD "1;"
 5#define FF_COLOR_MODE_DIM "2;"
 6#define FF_COLOR_MODE_ITALIC "3;"
 7#define FF_COLOR_MODE_UNDERLINE "4;"
 8#define FF_COLOR_MODE_BLINK "5;"
 9#define FF_COLOR_MODE_INVERSE "7;"
10#define FF_COLOR_MODE_HIDDEN "8;"
11#define FF_COLOR_MODE_STRIKETHROUGH "9;"
12
13#define FF_COLOR_MODE_RESET_ "0"
14#define FF_COLOR_MODE_BOLD_ "1"
15#define FF_COLOR_MODE_DIM_ "2"
16#define FF_COLOR_MODE_ITALIC_ "3"
17#define FF_COLOR_MODE_UNDERLINE_ "4"
18#define FF_COLOR_MODE_BLINK_ "5"
19#define FF_COLOR_MODE_INVERSE_ "7"
20#define FF_COLOR_MODE_HIDDEN_ "8"
21#define FF_COLOR_MODE_STRIKETHROUGH_ "9"
22
23#define FF_COLOR_FG_BLACK "30"
24#define FF_COLOR_FG_RED "31"
25#define FF_COLOR_FG_GREEN "32"
26#define FF_COLOR_FG_YELLOW "33"
27#define FF_COLOR_FG_BLUE "34"
28#define FF_COLOR_FG_MAGENTA "35"
29#define FF_COLOR_FG_CYAN "36"
30#define FF_COLOR_FG_WHITE "37"
31#define FF_COLOR_FG_DEFAULT "39"
32
33#define FF_COLOR_FG_LIGHT_BLACK "90"
34#define FF_COLOR_FG_LIGHT_RED "91"
35#define FF_COLOR_FG_LIGHT_GREEN "92"
36#define FF_COLOR_FG_LIGHT_YELLOW "93"
37#define FF_COLOR_FG_LIGHT_BLUE "94"
38#define FF_COLOR_FG_LIGHT_MAGENTA "95"
39#define FF_COLOR_FG_LIGHT_CYAN "96"
40#define FF_COLOR_FG_LIGHT_WHITE "97"
41
42#define FF_COLOR_BG_BLACK "40"
43#define FF_COLOR_BG_RED "41"
44#define FF_COLOR_BG_GREEN "42"
45#define FF_COLOR_BG_YELLOW "43"
46#define FF_COLOR_BG_BLUE "44"
47#define FF_COLOR_BG_MAGENTA "45"
48#define FF_COLOR_BG_CYAN "46"
49#define FF_COLOR_BG_WHITE "47"
50#define FF_COLOR_BG_DEFAULT "49"
51
52#define FF_COLOR_BG_LIGHT_BLACK "100"
53#define FF_COLOR_BG_LIGHT_RED "101"
54#define FF_COLOR_BG_LIGHT_GREEN "102"
55#define FF_COLOR_BG_LIGHT_YELLOW "103"
56#define FF_COLOR_BG_LIGHT_BLUE "104"
57#define FF_COLOR_BG_LIGHT_MAGENTA "105"
58#define FF_COLOR_BG_LIGHT_CYAN "106"
59#define FF_COLOR_BG_LIGHT_WHITE "107"
60
61#define FF_COLOR_FG_256 "38;5;"
62#define FF_COLOR_BG_256 "48;5;"
63
64#define FF_COLOR_FG_RGB "38;2;"
65#define FF_COLOR_BG_RGB "48;2;"