52 return colours->
reset;
STA_DECL char * colour_format(format_context_t context, colour_t idx, const char *fmt,...)
#define STA_DECL
sal2 annotation on function implementations to copy annotations from the declaration
#define CT_ANSI_RESET
ANSI reset.
#define CT_ANSI_MAGENTA
ANSI magenta.
#define CT_ANSI_RED
ANSI red.
#define CT_ANSI_YELLOW
ANSI yellow.
#define CT_ANSI_BLUE
ANSI blue.
#define CT_ANSI_WHITE
ANSI white.
#define CT_ANSI_GREEN
ANSI green.
#define CT_ANSI_CYAN
ANSI cyan.
STA_DECL char * colour_vformat(format_context_t context, colour_t idx, const char *fmt, va_list args)
format a string and add colour to it
STA_DECL const char * colour_get(const colour_pallete_t *colours, colour_t idx)
get a colours string form from a pallete
const colour_pallete_t kColourNone
a colour pallete that applies no colours
STA_RET_STRING colour_t idx
const colour_pallete_t kColourDefault
a colour pallete that applies ANSI VT100 colours
STA_DECL const char * colour_reset(const colour_pallete_t *colours)
get a reset string from a pallete
STA_DECL char * colour_text(format_context_t context, colour_t idx, const char *text)
add colour to a string
#define CTASSERT(expr)
assert a condition, prints the condition as a message
CT_NODISCARD STA_FORMAT_STRING const char * fmt
CT_NODISCARD STA_FORMAT_STRING const char CT_NODISCARD CT_STD_API char * str_vformat(arena_t *arena, const char *fmt, va_list args)
format a string
STA_DECL char * str_format(arena_t *arena, const char *fmt,...)
const char * colours[eColourCount]
STA_FIELD_STRING const char * reset
a formatting context when using colours
const colour_pallete_t * pallete