6 * Copyright (c) 2002-2007 Volkswagen Group Electronic Research
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright
15 * notice, this list of conditions and the following disclaimer in the
16 * documentation and/or other materials provided with the distribution.
17 * 3. Neither the name of Volkswagen nor the names of its contributors
18 * may be used to endorse or promote products derived from this software
19 * without specific prior written permission.
21 * Alternatively, provided that this notice is retained in full, this
22 * software may be distributed under the terms of the GNU General
23 * Public License ("GPL") version 2, in which case the provisions of the
24 * GPL apply INSTEAD OF those given above.
26 * The provided data structures and external interfaces from this code
27 * are not restricted to be used by modules with a GPL compatible license.
29 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
30 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
31 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
32 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
33 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
34 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
35 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
36 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
37 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
38 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
39 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
42 * Send feedback to <socketcan-users@lists.berlios.de>
49 /* reset to default */
51 #define ATTRESET "\33[0m"
55 #define ATTBOLD "\33[1m"
56 #define ATTUNDERLINE "\33[4m"
57 #define ATTBLINK "\33[5m"
58 #define ATTINVERSE "\33[7m"
59 #define ATTINVISIBLE "\33[8m"
61 /* foreground colors */
63 #define FGBLACK "\33[30m"
64 #define FGRED "\33[31m"
65 #define FGGREEN "\33[32m"
66 #define FGYELLOW "\33[33m"
67 #define FGBLUE "\33[34m"
68 #define FGMAGENTA "\33[35m"
69 #define FGCYAN "\33[36m"
70 #define FGWHITE "\33[37m"
72 /* background colors */
74 #define BGBLACK "\33[40m"
75 #define BGRED "\33[41m"
76 #define BGGREEN "\33[42m"
77 #define BGYELLOW "\33[43m"
78 #define BGBLUE "\33[44m"
79 #define BGMAGENTA "\33[45m"
80 #define BGCYAN "\33[46m"
81 #define BGWHITE "\33[47m"
85 #define CSR_HOME "\33[H"
86 #define CSR_UP "\33[A"
87 #define CSR_DOWN "\33[B"
88 #define CSR_RIGHT "\33[C"
89 #define CSR_LEFT "\33[D"
91 #define CSR_HIDE "\33[?25l"
92 #define CSR_SHOW "\33[?25h"
96 #define CLR_SCREEN "\33[2J"
98 #endif /* TERMINAL_H */