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
|
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- This file was created with the aha Ansi HTML Adapter. http://ziz.delphigl.com/tool_aha.php -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="application/xml+xhtml; charset=UTF-8" />
<title>colorize</title>
</head>
<body style="color:white; background-color:black">
<pre>
<span style="color:yellow;font-weight:bold;">[sts@apollo ~/colorize]$</span> ./colorize --help
Usage: ./colorize (foreground) OR (foreground)/(background) OR --clean[-all] [-|file]
Colors (foreground) (background)
{-} none none
{<span style="color:black;">#</span>} [Bb]lack black
{<span style="color:red;">#</span>} [Rr]ed red
{<span style="color:lime;">#</span>} [Gg]reen green
{<span style="color:yellow;">#</span>} [Yy]ellow yellow
{<span style="color:#3333FF;">#</span>} [Bb]lue blue
{<span style="color:fuchsia;">#</span>} [Mm]agenta magenta
{<span style="color:aqua;">#</span>} [Cc]yan cyan
{<span style="color:white;">#</span>} [Ww]hite white
{<span style="color:white;">#</span>} [Dd]efault default
{*} [Rr]andom random [--exclude-random=<foreground color>]
First character of color name in upper case denotes increased intensity,
whereas for lower case colors will be of normal intensity.
Options
--attr=ATTR1,ATTR2,...
--clean
--clean-all
--exclude-random=COLOR
-h, --help
-V, --version
</pre>
<pre>
<span style="color:yellow;font-weight:bold;">[sts@apollo ~/colorize]$</span> ./colorize cyan /etc/motd
<span style="color:aqua;"></span>
<span style="color:aqua;">The programs included with the Debian GNU/Linux system are free software;</span>
<span style="color:aqua;">the exact distribution terms for each program are described in the</span>
<span style="color:aqua;">individual files in /usr/share/doc/*/copyright.</span>
<span style="color:aqua;"></span>
<span style="color:aqua;">Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent</span>
<span style="color:aqua;">permitted by applicable law.</span>
</pre>
<pre>
<span style="color:yellow;font-weight:bold;">[sts@apollo ~/colorize]$</span> ./colorize cyan /etc/motd | ./colorize --clean
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
</pre>
<pre>
<span style="color:yellow;font-weight:bold;">[sts@apollo ~/colorize]$</span> ./colorize Yellow /etc/motd
<span style="color:yellow;font-weight:bold;"></span>
<span style="color:yellow;font-weight:bold;">The programs included with the Debian GNU/Linux system are free software;</span>
<span style="color:yellow;font-weight:bold;">the exact distribution terms for each program are described in the</span>
<span style="color:yellow;font-weight:bold;">individual files in /usr/share/doc/*/copyright.</span>
<span style="color:yellow;font-weight:bold;"></span>
<span style="color:yellow;font-weight:bold;">Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent</span>
<span style="color:yellow;font-weight:bold;">permitted by applicable law.</span>
</pre>
<pre>
<span style="color:yellow;font-weight:bold;">[sts@apollo ~/colorize]$</span> ./colorize white/blue /etc/motd
<span style="background-color:#3333FF;"></span><span style="color:white;background-color:#3333FF;"></span>
<span style="background-color:#3333FF;"></span><span style="color:white;background-color:#3333FF;">The programs included with the Debian GNU/Linux system are free software;</span>
<span style="background-color:#3333FF;"></span><span style="color:white;background-color:#3333FF;">the exact distribution terms for each program are described in the</span>
<span style="background-color:#3333FF;"></span><span style="color:white;background-color:#3333FF;">individual files in /usr/share/doc/*/copyright.</span>
<span style="background-color:#3333FF;"></span><span style="color:white;background-color:#3333FF;"></span>
<span style="background-color:#3333FF;"></span><span style="color:white;background-color:#3333FF;">Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent</span>
<span style="background-color:#3333FF;"></span><span style="color:white;background-color:#3333FF;">permitted by applicable law.</span>
</pre>
<pre>
<span style="color:yellow;font-weight:bold;">[sts@apollo ~/colorize]$</span> ./colorize --exclude-random=black random /etc/motd
<span style="color:red;"></span>
<span style="color:red;">The programs included with the Debian GNU/Linux system are free software;</span>
<span style="color:red;">the exact distribution terms for each program are described in the</span>
<span style="color:red;">individual files in /usr/share/doc/*/copyright.</span>
<span style="color:red;"></span>
<span style="color:red;">Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent</span>
<span style="color:red;">permitted by applicable law.</span>
</pre>
<pre>
<span style="color:yellow;font-weight:bold;">[sts@apollo ~/colorize]$</span> ./colorize --attr=bold magenta /etc/motd
<span style="color:fuchsia;font-weight:bold;"></span>
<span style="color:fuchsia;font-weight:bold;">The programs included with the Debian GNU/Linux system are free software;</span>
<span style="color:fuchsia;font-weight:bold;">the exact distribution terms for each program are described in the</span>
<span style="color:fuchsia;font-weight:bold;">individual files in /usr/share/doc/*/copyright.</span>
<span style="color:fuchsia;font-weight:bold;"></span>
<span style="color:fuchsia;font-weight:bold;">Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent</span>
<span style="color:fuchsia;font-weight:bold;">permitted by applicable law.</span>
</pre>
<pre>
<span style="color:yellow;font-weight:bold;">[sts@apollo ~/colorize]$</span> ./colorize green /etc/motd | head -n2 | tail -n1
<span style="color:lime;">The programs included with the Debian GNU/Linux system are free software;</span>
</pre>
<pre>
<span style="color:yellow;font-weight:bold;">[sts@apollo ~/colorize]$</span> ./colorize --version
colorize v0.62-10-g5be3a18 (compiled at Oct 14 2017, 13:07:07)
Compiler flags: "-ansi -pedantic "
Linker flags: ""
Preprocessor flags: ""
Buffer size: 4K
Color separator: '/'
Debugging: no
</pre>
</body>
</html>
|