vessel/core/include/clrs.h
Arija A. 7a848b778c
refact: Update formats of header guards.
Signed-off-by: Arija A. <ari@ari.lt>
2025-06-14 16:07:35 +03:00

38 lines
1 KiB
C

#ifndef VESSEL_CLRS_H_
#define VESSEL_CLRS_H_
#include "conf.h"
#ifdef NO_CLR
# define VS_CLR(code) ""
#else
# define VS_CLR(code) "\33[" code "m"
#endif
#define VS_CLR_RESET VS_CLR("0")
#define VS_CLR_BOLD VS_CLR("1")
#define VS_CLR_DIM VS_CLR("2")
#define VS_CLR_UNDERLINE VS_CLR("4")
#define VS_CLR_BLINK VS_CLR("5")
#define VS_CLR_REVERSE VS_CLR("7")
#define VS_CLR_HIDDEN VS_CLR("8")
#define VS_CLR_BLACK VS_CLR("30")
#define VS_CLR_RED VS_CLR("31")
#define VS_CLR_GREEN VS_CLR("32")
#define VS_CLR_YELLOW VS_CLR("33")
#define VS_CLR_BLUE VS_CLR("34")
#define VS_CLR_MAGENTA VS_CLR("35")
#define VS_CLR_CYAN VS_CLR("36")
#define VS_CLR_WHITE VS_CLR("37")
#define VS_CLR_BG_BLACK VS_CLR("40")
#define VS_CLR_BG_RED VS_CLR("41")
#define VS_CLR_BG_GREEN VS_CLR("42")
#define VS_CLR_BG_YELLOW VS_CLR("43")
#define VS_CLR_BG_BLUE VS_CLR("44")
#define VS_CLR_BG_MAGENTA VS_CLR("45")
#define VS_CLR_BG_CYAN VS_CLR("46")
#define VS_CLR_BG_WHITE VS_CLR("47")
#endif /* VESSEL_CLRS_H_ */