Haka: include/haka/colors.h Source File

Haka

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

colors.h
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5 #ifndef HAKA_COLORS_H
6 #define HAKA_COLORS_H
7
8 #include <haka/types.h>
9
10
11 #define CLEAR "\e[0m"
12 #define BOLD "\e[1m"
13 #define BLACK "\e[30m"
14 #define RED "\e[31m"
15 #define GREEN "\e[32m"
16 #define YELLOW "\e[33m"
17 #define BLUE "\e[34m"
18 #define MAGENTA "\e[35m"
19 #define CYAN "\e[36m"
20 #define WHITE "\e[37m"
21
22 bool colors_supported(int fd);
23 const char *c(const char *color, bool supported);
24
25 #endif /* HAKA_COLORS_H */
types.h