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