File: termcol.c

package info (click to toggle)
theseus 3.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 6,152 kB
  • ctags: 2,447
  • sloc: ansic: 42,404; makefile: 250; sh: 131
file content (152 lines) | stat: -rw-r--r-- 5,044 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
/*
    Theseus - maximum likelihood superpositioning of macromolecular structures

    Copyright (C) 2004-2014 Douglas L. Theobald

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the:

    Free Software Foundation, Inc.,
    59 Temple Place, Suite 330,
    Boston, MA  02111-1307  USA

    -/_|:|_|_\-
*/

#include <stdlib.h>

#ifdef _WIN32
    /* regular */
    const char tc_black[]  = "";
    const char tc_red[]    = "";
    const char tc_green[]  = "";
    const char tc_yellow[] = "";
    const char tc_blue[]   = "";
    const char tc_purple[] = "";
    const char tc_cyan[]   = "";
    const char tc_white[]  = "";
    
    /* bold (xterm) or light (console) */
    const char tc_BLACK[]  = "";
    const char tc_RED[]    = "";
    const char tc_GREEN[]  = "";
    const char tc_YELLOW[] = "";
    const char tc_BLUE[]   = "";
    const char tc_PURPLE[] = "";
    const char tc_CYAN[]   = "";
    const char tc_WHITE[]  = "";
    
    /* underline */
    const char tc_ublack[]  = "";
    const char tc_ured[]    = "";
    const char tc_ugreen[]  = "";
    const char tc_uyellow[] = "";
    const char tc_ublue[]   = "";
    const char tc_upurple[] = "";
    const char tc_ucyan[]   = "";
    const char tc_uwhite[]  = "";
    
    /* blink */
    const char tc_bblack[]  = "";
    const char tc_bred[]    = "";
    const char tc_bgreen[]  = "";
    const char tc_byellow[] = "";
    const char tc_bblue[]   = "";
    const char tc_bpurple[] = "";
    const char tc_bcyan[]   = "";
    const char tc_bwhite[]  = "";
    
    /* inverse */
    const char tc_iblack[]  = "";
    const char tc_ired[]    = "";
    const char tc_igreen[]  = "";
    const char tc_iyellow[] = "";
    const char tc_iblue[]   = "";
    const char tc_ipurple[] = "";
    const char tc_icyan[]   = "";
    const char tc_iwhite[]  = "";
    
    /* concealed */
    const char tc_cblack[]  = "";
    const char tc_cred[]    = "";
    const char tc_cgreen[]  = "";
    const char tc_cyellow[] = "";
    const char tc_cblue[]   = "";
    const char tc_cpurple[] = "";
    const char tc_ccyan[]   = "";
    const char tc_cwhite[]  = "";
    
    const char tc_NC[]     = "";
#else
    /* regular */
    const char tc_black[]  = "\033[0;30m";
    const char tc_red[]    = "\033[0;31m";
    const char tc_green[]  = "\033[0;32m";
    const char tc_yellow[] = "\033[0;33m";
    const char tc_blue[]   = "\033[0;34m";
    const char tc_purple[] = "\033[0;35m";
    const char tc_cyan[]   = "\033[0;36m";
    const char tc_white[]  = "\033[0;37m";
    
    /* bold (xterm) or light (console) */
    const char tc_BLACK[]  = "\033[1;30m";
    const char tc_RED[]    = "\033[1;31m";
    const char tc_GREEN[]  = "\033[1;32m";
    const char tc_YELLOW[] = "\033[1;33m";
    const char tc_BLUE[]   = "\033[1;34m";
    const char tc_PURPLE[] = "\033[1;35m";
    const char tc_CYAN[]   = "\033[1;36m";
    const char tc_WHITE[]  = "\033[1;37m";
    
    /* underline */
    const char tc_ublack[]  = "\033[4;30m";
    const char tc_ured[]    = "\033[4;31m";
    const char tc_ugreen[]  = "\033[4;32m";
    const char tc_uyellow[] = "\033[4;33m";
    const char tc_ublue[]   = "\033[4;34m";
    const char tc_upurple[] = "\033[4;35m";
    const char tc_ucyan[]   = "\033[4;36m";
    const char tc_uwhite[]  = "\033[4;37m";
    
    /* blink */
    const char tc_bblack[]  = "\033[5;30m";
    const char tc_bred[]    = "\033[5;31m";
    const char tc_bgreen[]  = "\033[5;32m";
    const char tc_byellow[] = "\033[5;33m";
    const char tc_bblue[]   = "\033[5;34m";
    const char tc_bpurple[] = "\033[5;35m";
    const char tc_bcyan[]   = "\033[5;36m";
    const char tc_bwhite[]  = "\033[5;37m";
    
    /* inverse */
    const char tc_iblack[]  = "\033[7;30m";
    const char tc_ired[]    = "\033[7;31m";
    const char tc_igreen[]  = "\033[7;32m";
    const char tc_iyellow[] = "\033[7;33m";
    const char tc_iblue[]   = "\033[7;34m";
    const char tc_ipurple[] = "\033[7;35m";
    const char tc_icyan[]   = "\033[7;36m";
    const char tc_iwhite[]  = "\033[7;37m";
    
    /* concealed */
    const char tc_cblack[]  = "\033[8;30m";
    const char tc_cred[]    = "\033[8;31m";
    const char tc_cgreen[]  = "\033[8;32m";
    const char tc_cyellow[] = "\033[8;33m";
    const char tc_cblue[]   = "\033[8;34m";
    const char tc_cpurple[] = "\033[8;35m";
    const char tc_ccyan[]   = "\033[8;36m";
    const char tc_cwhite[]  = "\033[8;37m";
    
    const char tc_NC[]     = "\033[0m";
#endif