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