1 /* SPDX-License-Identifier: GPL-2.0-or-later 2 * Copyright (c) 2017 Petr Vorel <[email protected]> 3 */ 4 5 #ifndef TST_ANSI_COLOR_H__ 6 #define TST_ANSI_COLOR_H__ 7 8 /* 9 * NOTE: these colors should match colors defined in tst_flag2color() in 10 * testcases/lib/tst_ansi_color.sh 11 */ 12 13 #define ANSI_COLOR_BLUE "\033[1;34m" 14 #define ANSI_COLOR_GREEN "\033[1;32m" 15 #define ANSI_COLOR_MAGENTA "\033[1;35m" 16 #define ANSI_COLOR_RED "\033[1;31m" 17 #define ANSI_COLOR_WHITE "\033[1;37m" 18 #define ANSI_COLOR_YELLOW "\033[1;33m" 19 20 #define ANSI_COLOR_RESET "\033[0m" 21 22 char* tst_ttype2color(int ttype); 23 int tst_color_enabled(int fd); 24 25 #endif /* TST_ANSI_COLOR_H__ */ 26