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