Debian Codegraph @

doc/colorize.html

raw
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <!-- This file was created with the aha Ansi HTML Adapter. http://ziz.delphigl.com/tool_aha.php -->
4 <html xmlns="http://www.w3.org/1999/xhtml">
5 <head>
6 <meta http-equiv="Content-Type" content="application/xml+xhtml; charset=UTF-8" />
7 <title>colorize</title>
8 </head>
9 <body style="color:white; background-color:black">
10 <pre>
11 <span style="color:yellow;font-weight:bold;">[sts@apollo ~/colorize]$</span> ./colorize --help
12 Usage: ./colorize (foreground) OR (foreground)/(background) OR --clean[-all] [-|file]
13
14 Colors (foreground) (background)
15 {-} none none
16 {<span style="color:black;">#</span>} [Bb]lack black
17 {<span style="color:red;">#</span>} [Rr]ed red
18 {<span style="color:lime;">#</span>} [Gg]reen green
19 {<span style="color:yellow;">#</span>} [Yy]ellow yellow
20 {<span style="color:#3333FF;">#</span>} [Bb]lue blue
21 {<span style="color:fuchsia;">#</span>} [Mm]agenta magenta
22 {<span style="color:aqua;">#</span>} [Cc]yan cyan
23 {<span style="color:white;">#</span>} [Ww]hite white
24 {<span style="color:white;">#</span>} [Dd]efault default
25 {*} [Rr]andom random [--exclude-random=&lt;foreground color&gt;]
26
27 First character of color name in upper case denotes increased intensity,
28 whereas for lower case colors will be of normal intensity.
29
30 Options
31 --attr=ATTR1,ATTR2,...
32 --clean
33 --clean-all
34 -c, --config=PATH
35 --exclude-random=COLOR
36 --omit-color-empty
37 --rainbow-fg
38 --rainbow-bg
39 -h, --help
40 -V, --version
41 </pre>
42 <pre>
43 <span style="color:yellow;font-weight:bold;">[sts@apollo ~/colorize]$</span> ./colorize cyan /etc/motd
44 <span style="color:aqua;"></span>
45 <span style="color:aqua;">The programs included with the Debian GNU/Linux system are free software;</span>
46 <span style="color:aqua;">the exact distribution terms for each program are described in the</span>
47 <span style="color:aqua;">individual files in /usr/share/doc/*/copyright.</span>
48 <span style="color:aqua;"></span>
49 <span style="color:aqua;">Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent</span>
50 <span style="color:aqua;">permitted by applicable law.</span>
51 </pre>
52 <pre>
53 <span style="color:yellow;font-weight:bold;">[sts@apollo ~/colorize]$</span> ./colorize cyan /etc/motd | ./colorize --clean
54
55 The programs included with the Debian GNU/Linux system are free software;
56 the exact distribution terms for each program are described in the
57 individual files in /usr/share/doc/*/copyright.
58
59 Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
60 permitted by applicable law.
61 </pre>
62 <pre>
63 <span style="color:yellow;font-weight:bold;">[sts@apollo ~/colorize]$</span> ./colorize Yellow /etc/motd
64 <span style="color:yellow;font-weight:bold;"></span>
65 <span style="color:yellow;font-weight:bold;">The programs included with the Debian GNU/Linux system are free software;</span>
66 <span style="color:yellow;font-weight:bold;">the exact distribution terms for each program are described in the</span>
67 <span style="color:yellow;font-weight:bold;">individual files in /usr/share/doc/*/copyright.</span>
68 <span style="color:yellow;font-weight:bold;"></span>
69 <span style="color:yellow;font-weight:bold;">Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent</span>
70 <span style="color:yellow;font-weight:bold;">permitted by applicable law.</span>
71 </pre>
72 <pre>
73 <span style="color:yellow;font-weight:bold;">[sts@apollo ~/colorize]$</span> ./colorize white/blue /etc/motd
74 <span style="background-color:#3333FF;"></span><span style="color:white;background-color:#3333FF;"></span>
75 <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>
76 <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>
77 <span style="background-color:#3333FF;"></span><span style="color:white;background-color:#3333FF;">individual files in /usr/share/doc/*/copyright.</span>
78 <span style="background-color:#3333FF;"></span><span style="color:white;background-color:#3333FF;"></span>
79 <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>
80 <span style="background-color:#3333FF;"></span><span style="color:white;background-color:#3333FF;">permitted by applicable law.</span>
81 </pre>
82 <pre>
83 <span style="color:yellow;font-weight:bold;">[sts@apollo ~/colorize]$</span> ./colorize --exclude-random=black random /etc/motd
84 <span style="color:red;"></span>
85 <span style="color:red;">The programs included with the Debian GNU/Linux system are free software;</span>
86 <span style="color:red;">the exact distribution terms for each program are described in the</span>
87 <span style="color:red;">individual files in /usr/share/doc/*/copyright.</span>
88 <span style="color:red;"></span>
89 <span style="color:red;">Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent</span>
90 <span style="color:red;">permitted by applicable law.</span>
91 </pre>
92 <pre>
93 <span style="color:yellow;font-weight:bold;">[sts@apollo ~/colorize]$</span> ./colorize --attr=bold magenta /etc/motd
94 <span style="color:fuchsia;font-weight:bold;"></span>
95 <span style="color:fuchsia;font-weight:bold;">The programs included with the Debian GNU/Linux system are free software;</span>
96 <span style="color:fuchsia;font-weight:bold;">the exact distribution terms for each program are described in the</span>
97 <span style="color:fuchsia;font-weight:bold;">individual files in /usr/share/doc/*/copyright.</span>
98 <span style="color:fuchsia;font-weight:bold;"></span>
99 <span style="color:fuchsia;font-weight:bold;">Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent</span>
100 <span style="color:fuchsia;font-weight:bold;">permitted by applicable law.</span>
101 </pre>
102 <pre>
103 <span style="color:yellow;font-weight:bold;">[sts@apollo ~/colorize]$</span> ./colorize green /etc/motd | head -n2 | tail -n1
104 <span style="color:lime;">The programs included with the Debian GNU/Linux system are free software;</span>
105 </pre>
106 <pre>
107 <span style="color:yellow;font-weight:bold;">[sts@apollo ~/colorize]$</span> ./colorize --rainbow-fg White/black /etc/motd
108 <span style="background-color:black;"></span><span style="font-weight:bold;color:gray;background-color:black;"></span>
109 <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>
110 <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>
111 <span style="background-color:black;"></span><span style="font-weight:bold;color:olive;background-color:black;">individual files in /usr/share/doc/*/copyright.</span>
112 <span style="background-color:black;"></span><span style="font-weight:bold;color:blue;background-color:black;"></span>
113 <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>
114 <span style="background-color:black;"></span><span style="font-weight:bold;color:teal;background-color:black;">permitted by applicable law.</span>
115 </pre>
116 <pre>
117 <span style="color:yellow;font-weight:bold;">[sts@apollo ~/colorize]$</span> ./colorize --version
118 colorize v0.66-4-gdb8be3e (compiled at Aug 2 2024, 16:07:13)
119 Compiler flags: &quot;-ansi -pedantic &quot;
120 Linker flags: &quot;&quot;
121 Preprocessor flags: &quot;&quot;
122 Buffer size: 4K
123 Color separator: '/'
124 Debugging: no
125 </pre>
126 </body>
127 </html>