23#ifndef _LIBTERMCOLOR_TERMCOLOR_H
24#define _LIBTERMCOLOR_TERMCOLOR_H
30#if (defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) || defined(__WIN32) && !defined(__CYGWIN__)) && defined (ENABLE_VIRTUAL_TERMINAL_PROCESSING)
31 #define TERMCOLOR_OS_WIN
66 int foreground,
int background);
87 size_t k,
size_t *len);
const char * tcol_errorstr(const enum term_color_error_t err)
int tcol_snprintf(char *buffer, size_t N, const char *fmt,...)
int tcol_fprintf(FILE *stream, const char *fmt,...)
int tcol_printf(const char *fmt,...)
int _tcol_color_generate(char *dst, size_t dstn, size_t *len, int rep, int foreground, int background)
void tcol_override_color_checks(bool enable_color)
int tcol_color_parse(char *dst, size_t dstn, char color[16], size_t k, size_t *len)
bool tcol_has_color(void)
@ TermColorErrorInvalidColor
@ TermColorErrorUnterminatedColor
@ TermColorErrorAllocationFailed
@ TermColorErrorPrintingFailed