GCpp general purpose C++ library  version 1.0
GTerminalDefines.hh
Go to the documentation of this file.
1 //======================================================================
2 /*! \file GTerminalDefines.hh
3  *
4  * Defines shell terminal related variables.
5  *
6  */
7 //======================================================================
8 
9 #ifndef G_TERMINAL_DEFINES_HH
10 #define G_TERMINAL_DEFINES_HH
11 
12 #ifndef G_TERM_TCSH
13 
14  #define G_TERM_RED "" ///< Color code for shell terminal
15  #define G_TERM_GREEN "" ///< Color code for shell terminal
16  #define G_TERM_YELLOW "" ///< Color code for shell terminal
17  #define G_TERM_BLUE "" ///< Color code for shell terminal
18  #define G_TERM_PURPLE "" ///< Color code for shell terminal
19  #define G_TERM_CYAN "" ///< Color code for shell terminal
20 
21  #define G_TERM_BLACK_ON_RED "" ///< Color code for shell terminal
22  #define G_TERM_BLACK_ON_GREEN "" ///< Color code for shell terminal
23  #define G_TERM_BLACK_ON_YELLOW "" ///< Color code for shell terminal
24  #define G_TERM_BLACK_ON_BLUE "" ///< Color code for shell terminal
25  #define G_TERM_BLACK_ON_PURPLE "" ///< Color code for shell terminal
26  #define G_TERM_BLACK_ON_CYAN "" ///< Color code for shell terminal
27 
28  #define G_TERM_NORM "" ///< Text display code for shell terminal
29  #define G_TERM_DEFAULT "" ///< Text display code for shell terminal
30  #define G_TERM_RVIDEO "" ///< Text display code for shell terminal
31 
32  #define G_TERM_ENDL "\n" ///< End of line
33 
34 #else
35 
36  #define G_TERM_RED "\033[31m" ///< Color code for shell terminal
37  #define G_TERM_GREEN "\033[32m" ///< Color code for shell terminal
38  #define G_TERM_YELLOW "\033[33m" ///< Color code for shell terminal
39  #define G_TERM_BLUE "\033[34m" ///< Color code for shell terminal
40  #define G_TERM_PURPLE "\033[35m" ///< Color code for shell terminal
41  #define G_TERM_CYAN "\033[36m" ///< Color code for shell terminal
42 
43  #define G_TERM_BLACK_ON_RED "\033[40;07;01;31m" ///< Color code for shell terminal
44  #define G_TERM_BLACK_ON_GREEN "\033[40;07;01;32m" ///< Color code for shell terminal
45  #define G_TERM_BLACK_ON_YELLOW "\033[40;07;01;33m" ///< Color code for shell terminal
46  #define G_TERM_BLACK_ON_BLUE "\033[40;07;01;34m" ///< Color code for shell terminal
47  #define G_TERM_BLACK_ON_PURPLE "\033[40;07;01;35m" ///< Color code for shell terminal
48  #define G_TERM_BLACK_ON_CYAN "\033[40;07;01;36m" ///< Color code for shell terminal
49 
50  #define G_TERM_NORM "\033[m" ///< Text display code for shell terminal
51  #define G_TERM_DEFAULT "\033[m" ///< Text display code for shell terminal
52  #define G_TERM_RVIDEO "\033[7m" ///< Text display code for shell terminal
53 
54  #define G_TERM_ENDL "\033[m\n" ///< End of line
55 
56 #endif
57 
58 
59 //======================================================================
60 #endif