2020-10-27 10:39:46 +00:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_LOG_COLOR_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_LOG_COLOR_H_
|
2022-03-18 09:33:37 +00:00
|
|
|
#include "libc/log/internal.h"
|
2020-10-27 10:39:46 +00:00
|
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
|
|
|
2022-03-18 09:33:37 +00:00
|
|
|
#define CLS (!__nocolor ? "\r\e[J" : "")
|
|
|
|
#define RED (!__nocolor ? "\e[30;101m" : "")
|
|
|
|
#define GREEN (!__nocolor ? "\e[32m" : "")
|
|
|
|
#define UNBOLD (!__nocolor ? "\e[22m" : "")
|
|
|
|
#define RED2 (!__nocolor ? "\e[91;1m" : "")
|
|
|
|
#define BLUE1 (!__nocolor ? "\e[94;49m" : "")
|
|
|
|
#define BLUE2 (!__nocolor ? "\e[34m" : "")
|
|
|
|
#define RESET (!__nocolor ? "\e[0m" : "")
|
|
|
|
#define SUBTLE (!__nocolor ? "\e[35m" : "")
|
2020-10-27 10:39:46 +00:00
|
|
|
|
|
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_LOG_COLOR_H_ */
|