Skip to content

Commit d3130c0

Browse files
committed
color_out: added dark yellow
+ helper macros for normal yellow
1 parent df23522 commit d3130c0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/utils/color_out.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,24 +52,29 @@
5252
#define TERM_FG_MAGENTA "\033[35m"
5353
#define TERM_FG_BRIGHT_GREEN "\033[92m"
5454
#define TERM_FG_BRIGHT_BLUE "\033[94m"
55+
#define TERM_FG_DARK_YELLOW "\033[38;5;220m"
5556
#define TERM_FG_RESET "\033[39m"
5657
#define TERM_BG_BLACK "\033[40m"
5758
#define TERM_BG_RESET "\033[49m"
5859

5960
#define TBOLD(x) TERM_BOLD x TERM_RESET
6061
#define TUNDERLINE(x) TERM_UNDERLINE x TERM_RESET
6162
#define TGREEN(x) TERM_FG_GREEN x TERM_FG_RESET
63+
#define TYELLOW(x) TERM_FG_YELLOW x TERM_FG_RESET
6264
#define TMAGENTA(x) TERM_FG_MAGENTA x TERM_FG_RESET
6365
#define TRED(x) TERM_FG_RED x TERM_FG_RESET
6466
#define TBRIGHT_BLUE(x) TERM_FG_BRIGHT_BLUE x TERM_FG_RESET
67+
#define TDARK_YELLOW(x) TERM_FG_DARK_YELLOW x TERM_FG_RESET
6568

6669
// macros intended for C++ streams - enclosed arg doesn't need to be C string literals
6770
#define SBOLD(x) TBOLD(<< x <<)
6871
#define SUNDERLINE(x) TUNDERLINE(<< x <<)
6972
#define SGREEN(x) TGREEN(<< x <<)
73+
#define SYELLOW(x) TYELLOW(<< x <<)
7074
#define SMAGENTA(x) TMAGENTA(<< x <<)
7175
#define SRED(x) TRED(<< x <<)
7276
#define SBRIGHT_BLUE(x) TBRIGHT_BLUE(<< x <<)
77+
#define SDARK_YELLOW(x) TDARK_YELLOW(<< x <<)
7378

7479
#ifdef __cplusplus
7580
extern "C" {

0 commit comments

Comments
 (0)