6 Colorize aims at being a small, independent and handy command-line
7 text colorizing tool. It emits ANSI escape sequences in order to
8 color lines of text; also, sequences emitted by colorize or foreign
9 programs may be cleared.
11 The main code is written in C (c89 mostly), whereas the test script
12 consists of Perl code.
14 Colorize is known to build and test successfully on Linux and
15 Net/Open/MirBSD. Other platforms are untested, so be prepared for
16 it to eventually not work as expected there.
27 Issue `make' to build colorize.
29 Once completed, run the tests with `make check'.
31 Then you should most likely have a working binary. There are
32 currently no make targets to install it as such.
34 Finally, remove it through `make clean'.
36 Debugging instructions
37 ----------------------
38 For the sake of completeness, colorize can be also built with
39 debugging output by issuing `make FLAGS=-DDEBUG'. The intention
40 is to provide some memory allocation diagnostics (and might be
41 extended in future). Usually, a debugging build is not required.
43 Furthermore, tests can be run through valgrind by issuing, for
44 example, `make check_valgrind 2>&1 | tee valgrind.out'. The
45 file provided here for the `tee' invocation will be populated
46 with the captured output from both standard output and error
51 See man page source file: colorize.1.
58 | ls "$@" | colorize green -
62 This excerpt defines an alias which will set the color being
63 printed for literal ls invocations to green.
67 Let me know, if you have ideas, bug reports, patches, etc.
71 Steven Schubiger <stsc@refcnt.org>