mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-30 06:20:28 +00:00
Make exciting improvements
- 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
This commit is contained in:
parent
f5831a62fa
commit
af645fcbec
61 changed files with 1354 additions and 814 deletions
|
@ -1,20 +1,17 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_LOG_COLOR_H_
|
||||
#define COSMOPOLITAN_LIBC_LOG_COLOR_H_
|
||||
#include "libc/log/internal.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
#define CLS (cancolor() ? "\r\e[J" : "")
|
||||
#define RED (cancolor() ? "\e[30;101m" : "")
|
||||
#define GREEN (cancolor() ? "\e[32m" : "")
|
||||
#define UNBOLD (cancolor() ? "\e[22m" : "")
|
||||
#define RED2 (cancolor() ? "\e[91;1m" : "")
|
||||
#define BLUE1 (cancolor() ? "\e[94;49m" : "")
|
||||
#define BLUE2 (cancolor() ? "\e[34m" : "")
|
||||
#define RESET (cancolor() ? "\e[0m" : "")
|
||||
#define SUBTLE (cancolor() ? "\e[35m" : "")
|
||||
#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" : "")
|
||||
|
||||
bool cancolor(void) nothrow nocallback nosideeffect;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_LOG_COLOR_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue