Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
ansi.h
1 /*
2  * ANSI codes for output (interface)
3  *
4  * This file is part of OTAWA
5  * Copyright (c) 2019, IRIT UPS.
6  *
7  * OTAWA is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * OTAWA is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with OTAWA; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20  */
21 #ifndef ELM_IO_ANSI_H_
22 #define ELM_IO_ANSI_H_
23 
24 #include <elm/io/Output.h>
25 
26 namespace elm { namespace io {
27 
28 class ANSIManager {
29 public:
30  typedef cstring t;
31  static void print(io::Output& out, cstring text);
32 };
33 
35 
36 extern ANSICode
37  PLAIN,
45 
46 extern ANSICode
47  BLACK,
48  RED,
63 
64 extern ANSICode
65  BACK_BLACK,
81 
82 } } // elm::io
83 
84 #endif /* ELM_IO_ANSI_H_ */
Definition: CString.h:17
Definition: ansi.h:28
cstring t
Definition: ansi.h:30
static void print(io::Output &out, cstring text)
Definition: io_ansi.cpp:35
Definition: Output.h:179
Definition: Output.h:243
sys::SystemOutStream & out
Definition: system_SystemIO.cpp:122
ANSICode BACK_BRIGHT_CYAN
< ANSI code for bright magenta back
Definition: ansi.h:79
ANSICode BACK_RED
< ANSI code for black back
Definition: ansi.h:66
Tag< ANSIManager > ANSICode
Definition: ansi.h:34
ANSICode BACK_BRIGHT_YELLOW
< ANSI code for bright green back
Definition: ansi.h:76
ANSICode RAPID_BLINK
< ANSI code for blink text
Definition: ansi.h:43
ANSICode GREEN
< ANSI code for red text
Definition: ansi.h:49
ANSICode WHITE
< ANSI code for cyan text
Definition: ansi.h:54
ANSICode BACK_BRIGHT_BLUE
< ANSI code for bright yellow back
Definition: ansi.h:77
ANSICode BACK_BLACK
ANSICode ITALIC
< ANSI code for faint text
Definition: ansi.h:40
ANSICode REVERSE
< ANSI code for rapid blink text
Definition: ansi.h:44
ANSICode CYAN
< ANSI code for magenta text
Definition: ansi.h:53
ANSICode BACK_BRIGHT_WHITE
< ANSI code for bright cyan back
Definition: ansi.h:80
ANSICode BACK_BLUE
< ANSI code for yellow back
Definition: ansi.h:69
ANSICode BLINK
< ANSI code for underlined text
Definition: ansi.h:42
ANSICode BRIGHT_CYAN
< ANSI code for bright magenta text
Definition: ansi.h:61
ANSICode BRIGHT_MAGENTA
< ANSI code for bright blue text
Definition: ansi.h:60
ANSICode BACK_YELLOW
< ANSI code for green back
Definition: ansi.h:68
ANSICode BACK_BRIGHT_BLACK
< ANSI code for white back
Definition: ansi.h:73
ANSICode BLACK
ANSICode BRIGHT_RED
< ANSI code for bright black text
Definition: ansi.h:56
ANSICode BACK_GREEN
< ANSI code for red back
Definition: ansi.h:67
ANSICode BRIGHT_YELLOW
< ANSI code for bright green text
Definition: ansi.h:58
ANSICode PLAIN
ANSICode FAINT
< ANSI code for bold text
Definition: ansi.h:39
ANSICode BACK_WHITE
< ANSI code for cyan back
Definition: ansi.h:72
ANSICode BACK_MAGENTA
< ANSI code for blue back
Definition: ansi.h:70
ANSICode BACK_CYAN
< ANSI code for magenta back
Definition: ansi.h:71
ANSICode MAGENTA
< ANSI code for blue text
Definition: ansi.h:52
ANSICode RED
< ANSI code for black text
Definition: ansi.h:48
ANSICode BACK_BRIGHT_GREEN
< ANSI code for bright red back
Definition: ansi.h:75
ANSICode BRIGHT_GREEN
< ANSI code for bright red text
Definition: ansi.h:57
ANSICode BRIGHT_BLUE
< ANSI code for bright yellow text
Definition: ansi.h:59
ANSICode BRIGHT_BLACK
< ANSI code for white text
Definition: ansi.h:55
ANSICode BLUE
< ANSI code for yellow text
Definition: ansi.h:51
ANSICode BOLD
< ANSI code for plain display
Definition: ansi.h:38
ANSICode BRIGHT_WHITE
< ANSI code for bright cyan text
Definition: ansi.h:62
ANSICode YELLOW
< ANSI code for green text
Definition: ansi.h:50
ANSICode BACK_BRIGHT_MAGENTA
< ANSI code for bright blue back
Definition: ansi.h:78
ANSICode UNDERLINE
< ANSI code for italic text
Definition: ansi.h:41
ANSICode BACK_BRIGHT_RED
< ANSI code for bright black back
Definition: ansi.h:74
Definition: adapter.h:26