mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 19:43:32 +00:00
af645fcbec
- Add Lua backtraces to redbean! - Wipe serving keys after redbean forks - Audit redbean to remove free via exit - Log SSL client ciphersuite preferences - Increase ASAN malloc() backtrace depth - Make GetSslRoots() behave as a singleton - Move leaks.c from LIBC_TESTLIB to LIBC_LOG - Add undocumented %n to printf() for newlines - Fix redbean memory leak reindexing inode change - Fix redbean memory leak with Fetch() DNS object - Restore original environ after __cxa_finalize() - Make backtrace always work after __cxa_finalize() - Introduce COUNTEXPR() diagnostic / benchmark tool - Fix a few more instances of errno being clobbered - Consolidate the ANSI color disabling internal APIs
17 lines
644 B
C
17 lines
644 B
C
#ifndef COSMOPOLITAN_LIBC_LOG_COLOR_H_
|
|
#define COSMOPOLITAN_LIBC_LOG_COLOR_H_
|
|
#include "libc/log/internal.h"
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
|
|
#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" : "")
|
|
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
#endif /* COSMOPOLITAN_LIBC_LOG_COLOR_H_ */
|