1 /* SPDX-License-Identifier: Apache-2.0
2 * Copyright (c) 2024 Cisco Systems, Inc.
5 #ifndef __FORMAT_ANSI_H__
6 #define __FORMAT_ANSI_H__
8 #define ANSI_RESET "\x1b[0m"
9 #define ANSI_BOLD "\x1b[1m"
10 #define ANSI_ITALIC "\x1b[3m"
11 #define ANSI_UNDERLINE "\x1b[4m"
12 #define ANSI_BLINK "\x1b[5m"
13 #define ANSI_FG_BLACK "\x1b[30m"
14 #define ANSI_FG_RED "\x1b[31m"
15 #define ANSI_FG_GREEN "\x1b[32m"
16 #define ANSI_FG_YELLOW "\x1b[33m"
17 #define ANSI_FG_BLUE "\x1b[34m"
18 #define ANSI_FG_MAGENTA "\x1b[35m"
19 #define ANSI_FG_CYAN "\x1b[36m"
20 #define ANSI_FG_WHITE "\x1b[37m"
21 #define ANSI_FG_DEFAULT "\x1b[39m"
22 #define ANSI_BG_BLACK "\x1b[40m"
23 #define ANSI_BG_RED "\x1b[41m"
24 #define ANSI_BG_GREEN "\x1b[42m"
25 #define ANSI_BG_YELLOW "\x1b[43m"
26 #define ANSI_BG_BLUE "\x1b[44m"
27 #define ANSI_BG_MAGENTA "\x1b[45m"
28 #define ANSI_BG_CYAN "\x1b[46m"
29 #define ANSI_BG_WHITE "\x1b[47m"
30 #define ANSI_BG_DEFAULT "\x1b[49m"
31 #define ANSI_FG_BR_BLACK "\x1b[90m"
32 #define ANSI_FG_BR_RED "\x1b[91m"
33 #define ANSI_FG_BR_GREEN "\x1b[92m"
34 #define ANSI_FG_BR_YELLOW "\x1b[93m"
35 #define ANSI_FG_BR_BLUE "\x1b[94m"
36 #define ANSI_FG_BR_MAGENTA "\x1b[95m"
37 #define ANSI_FG_BR_CYAN "\x1b[96m"
38 #define ANSI_FG_BR_WHITE "\x1b[97m"
39 #define ANSI_BG_BR_BLACK "\x1b[100m"
40 #define ANSI_BG_BR_RED "\x1b[101m"
41 #define ANSI_BG_BR_GREEN "\x1b[102m"
42 #define ANSI_BG_BR_YELLOW "\x1b[103m"
43 #define ANSI_BG_BR_BLUE "\x1b[104m"
44 #define ANSI_BG_BR_MAGENTA "\x1b[105m"
45 #define ANSI_BG_BR_CYAN "\x1b[106m"
46 #define ANSI_BG_BR_WHITE "\x1b[107m"
48 #endif /* __FORMAT_ANSI_H__ */