aboutsummaryrefslogtreecommitdiffstats
path: root/doc/colorize.html
blob: 69e1854131194a1cdf48f63d879aeca53aae963c (plain)
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
<?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=&lt;foreground color&gt;]

	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
		-c, --config=PATH
		    --exclude-random=COLOR
		    --omit-color-empty
		    --rainbow-fg
		    --rainbow-bg
		-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 --rainbow-fg White/black /etc/motd
<span style="background-color:black;"></span><span style="font-weight:bold;color:gray;background-color:black;"></span>
<span style="background-color:black;"></span><span style="font-weight:bold;color:red;background-color:black;">The programs included with the Debian GNU/Linux system are free software;</span>
<span style="background-color:black;"></span><span style="font-weight:bold;color:green;background-color:black;">the exact distribution terms for each program are described in the</span>
<span style="background-color:black;"></span><span style="font-weight:bold;color:olive;background-color:black;">individual files in /usr/share/doc/*/copyright.</span>
<span style="background-color:black;"></span><span style="font-weight:bold;color:blue;background-color:black;"></span>
<span style="background-color:black;"></span><span style="font-weight:bold;color:purple;background-color:black;">Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent</span>
<span style="background-color:black;"></span><span style="font-weight:bold;color:teal;background-color:black;">permitted by applicable law.</span>
</pre>
<pre>
<span style="color:yellow;font-weight:bold;">[sts@apollo ~/colorize]$</span> ./colorize --version
colorize v0.66-4-gdb8be3e (compiled at Aug  2 2024, 16:07:13)
Compiler flags: &quot;-ansi -pedantic &quot;
Linker flags: &quot;&quot;
Preprocessor flags: &quot;&quot;
Buffer size: 4K
Color separator: '/'
Debugging: no
</pre>
</body>
</html>