summaryrefslogtreecommitdiff
path: root/color.h
blob: b5c7a4b8b2003f9e14231b823e5358e2a4254b21 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* SPDX-License-Identifier: GPL-2.0 */

/** \file color.h Exported functions from color.c. */

/** "\033[1;38;5;2xx;48;5;2xxm\0" is 23 bytes */
#define COLOR_MAXLEN 24

/** Switch back to normal colors. */
#define COLOR_RESET "\033[m"

void color_parse_or_die(const char *value, char *dst);