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_ */
elm::io::BACK_BRIGHT_GREEN
ANSICode BACK_BRIGHT_GREEN
< ANSI code for bright red back
Definition: ansi.h:75
elm::io::BRIGHT_BLACK
ANSICode BRIGHT_BLACK
< ANSI code for white text
Definition: ansi.h:55
elm::io::BRIGHT_RED
ANSICode BRIGHT_RED
< ANSI code for bright black text
Definition: ansi.h:56
elm::io::BRIGHT_CYAN
ANSICode BRIGHT_CYAN
< ANSI code for bright magenta text
Definition: ansi.h:61
elm::io::ANSIManager::t
cstring t
Definition: ansi.h:30
elm::io::RAPID_BLINK
ANSICode RAPID_BLINK
< ANSI code for blink text
Definition: ansi.h:43
elm::io::BACK_BLACK
ANSICode BACK_BLACK
elm::io::out
sys::SystemOutStream & out
Definition: system_SystemIO.cpp:122
elm::io::BACK_WHITE
ANSICode BACK_WHITE
< ANSI code for cyan back
Definition: ansi.h:72
elm::io::YELLOW
ANSICode YELLOW
< ANSI code for green text
Definition: ansi.h:50
elm::io::ANSIManager
Definition: ansi.h:28
elm::io::BRIGHT_MAGENTA
ANSICode BRIGHT_MAGENTA
< ANSI code for bright blue text
Definition: ansi.h:60
elm::io::REVERSE
ANSICode REVERSE
< ANSI code for rapid blink text
Definition: ansi.h:44
elm::io::FAINT
ANSICode FAINT
< ANSI code for bold text
Definition: ansi.h:39
elm::io::BRIGHT_BLUE
ANSICode BRIGHT_BLUE
< ANSI code for bright yellow text
Definition: ansi.h:59
elm::io::BACK_CYAN
ANSICode BACK_CYAN
< ANSI code for magenta back
Definition: ansi.h:71
elm::io::BACK_BRIGHT_BLACK
ANSICode BACK_BRIGHT_BLACK
< ANSI code for white back
Definition: ansi.h:73
elm::io::GREEN
ANSICode GREEN
< ANSI code for red text
Definition: ansi.h:49
elm::io::BACK_BLUE
ANSICode BACK_BLUE
< ANSI code for yellow back
Definition: ansi.h:69
elm::io::UNDERLINE
ANSICode UNDERLINE
< ANSI code for italic text
Definition: ansi.h:41
elm::io::BACK_BRIGHT_YELLOW
ANSICode BACK_BRIGHT_YELLOW
< ANSI code for bright green back
Definition: ansi.h:76
elm::io::ANSICode
Tag< ANSIManager > ANSICode
Definition: ansi.h:34
elm::io::BLACK
ANSICode BLACK
elm::CString
Definition: CString.h:17
elm::io::BACK_BRIGHT_RED
ANSICode BACK_BRIGHT_RED
< ANSI code for bright black back
Definition: ansi.h:74
elm::io::BRIGHT_GREEN
ANSICode BRIGHT_GREEN
< ANSI code for bright red text
Definition: ansi.h:57
elm::io::BACK_RED
ANSICode BACK_RED
< ANSI code for black back
Definition: ansi.h:66
elm::io::BACK_GREEN
ANSICode BACK_GREEN
< ANSI code for red back
Definition: ansi.h:67
elm::io::ANSIManager::print
static void print(io::Output &out, cstring text)
Definition: io_ansi.cpp:35
elm
Definition: adapter.h:26
elm::io::Tag
Definition: Output.h:243
elm::io::BRIGHT_WHITE
ANSICode BRIGHT_WHITE
< ANSI code for bright cyan text
Definition: ansi.h:62
elm::io::CYAN
ANSICode CYAN
< ANSI code for magenta text
Definition: ansi.h:53
elm::io::BACK_BRIGHT_WHITE
ANSICode BACK_BRIGHT_WHITE
< ANSI code for bright cyan back
Definition: ansi.h:80
elm::io::PLAIN
ANSICode PLAIN
elm::io::BOLD
ANSICode BOLD
< ANSI code for plain display
Definition: ansi.h:38
elm::io::BLUE
ANSICode BLUE
< ANSI code for yellow text
Definition: ansi.h:51
elm::io::BACK_BRIGHT_MAGENTA
ANSICode BACK_BRIGHT_MAGENTA
< ANSI code for bright blue back
Definition: ansi.h:78
elm::io::MAGENTA
ANSICode MAGENTA
< ANSI code for blue text
Definition: ansi.h:52
elm::io::WHITE
ANSICode WHITE
< ANSI code for cyan text
Definition: ansi.h:54
elm::io::BACK_BRIGHT_CYAN
ANSICode BACK_BRIGHT_CYAN
< ANSI code for bright magenta back
Definition: ansi.h:79
elm::io::BRIGHT_YELLOW
ANSICode BRIGHT_YELLOW
< ANSI code for bright green text
Definition: ansi.h:58
elm::io::BACK_BRIGHT_BLUE
ANSICode BACK_BRIGHT_BLUE
< ANSI code for bright yellow back
Definition: ansi.h:77
elm::io::Output
Definition: Output.h:179
elm::io::BACK_MAGENTA
ANSICode BACK_MAGENTA
< ANSI code for blue back
Definition: ansi.h:70
elm::io::BLINK
ANSICode BLINK
< ANSI code for underlined text
Definition: ansi.h:42
elm::io::ITALIC
ANSICode ITALIC
< ANSI code for faint text
Definition: ansi.h:40
elm::io::BACK_YELLOW
ANSICode BACK_YELLOW
< ANSI code for green back
Definition: ansi.h:68
elm::io::RED
ANSICode RED
< ANSI code for black text
Definition: ansi.h:48