Home | History | Annotate | Download | only in include
      1 /*
      2  * Copyright (c) 2017 Petr Vorel <pvorel (at) suse.cz>
      3  *
      4  * This program is free software: you can redistribute it and/or modify
      5  * it under the terms of the GNU General Public License as published by
      6  * the Free Software Foundation, either version 2 of the License, or
      7  * (at your option) any later version.
      8  *
      9  * This program is distributed in the hope that it will be useful,
     10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
     11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     12  * GNU General Public License for more details.
     13  *
     14  * You should have received a copy of the GNU General Public License
     15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
     16  */
     17 
     18 #ifndef TST_ANSI_COLOR_H__
     19 #define TST_ANSI_COLOR_H__
     20 /*
     21  * NOTE: these colors should match colors defined in tst_flag2color() in
     22  * testcases/lib/tst_ansi_color.sh
     23  */
     24 #define ANSI_COLOR_BLUE		"\033[1;34m"
     25 #define ANSI_COLOR_GREEN	"\033[1;32m"
     26 #define ANSI_COLOR_MAGENTA	"\033[1;35m"
     27 #define ANSI_COLOR_RED		"\033[1;31m"
     28 #define ANSI_COLOR_YELLOW	"\033[1;33m"
     29 
     30 #define ANSI_COLOR_RESET	"\033[0m"
     31 
     32 char* tst_ttype2color(int ttype);
     33 int tst_color_enabled(int fd);
     34 
     35 #endif	/* TST_ANSI_COLOR_H__ */
     36