1 /* |
|
2 * ansi.h - Header for GabbleConnection |
|
3 * Copyright (C) 2006 Collabora Ltd. |
|
4 * |
|
5 * This library is free software; you can redistribute it and/or |
|
6 * modify it under the terms of the GNU Lesser General Public |
|
7 * License as published by the Free Software Foundation; either |
|
8 * version 2.1 of the License, or (at your option) any later version. |
|
9 * |
|
10 * This library is distributed in the hope that it will be useful, |
|
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
13 * Lesser General Public License for more details. |
|
14 * |
|
15 * You should have received a copy of the GNU Lesser General Public |
|
16 * License along with this library; if not, write to the Free Software |
|
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
|
18 */ |
|
19 #ifndef __ANSI_H__ |
|
20 #define __ANSI_H__ |
|
21 |
|
22 #define ANSI_RESET "\x1b[0m" |
|
23 #define ANSI_BOLD_ON "\x1b[1m" |
|
24 #define ANSI_INVERSE_ON "\x1b[7m" |
|
25 #define ANSI_BOLD_OFF "\x1b[22m" |
|
26 #define ANSI_FG_BLACK "\x1b[30m" |
|
27 #define ANSI_FG_RED "\x1b[31m" |
|
28 #define ANSI_FG_GREEN "\x1b[32m" |
|
29 #define ANSI_FG_YELLOW "\x1b[33m" |
|
30 #define ANSI_FG_BLUE "\x1b[34m" |
|
31 #define ANSI_FG_MAGENTA "\x1b[35m" |
|
32 #define ANSI_FG_CYAN "\x1b[36m" |
|
33 #define ANSI_FG_WHITE "\x1b[37m" |
|
34 #define ANSI_BG_RED "\x1b[41m" |
|
35 #define ANSI_BG_GREEN "\x1b[42m" |
|
36 #define ANSI_BG_YELLOW "\x1b[43m" |
|
37 #define ANSI_BG_BLUE "\x1b[44m" |
|
38 #define ANSI_BG_MAGENTA "\x1b[45m" |
|
39 #define ANSI_BG_CYAN "\x1b[46m" |
|
40 #define ANSI_BG_WHITE "\x1b[47m" |
|
41 |
|
42 #endif /* __ANSI_H__ */ |
|