Colorifer is set of utilities to color output of other processes, e.g. command line utilites or compilers.
These programs make output more readable using different color for the significant
pieces of the text.
As a result these programs can work like colorgcc perl script, and also for other programs.
You only need to create new config - set of the patterns (regular expressions) and colors you want.
Latest version of color-gcc (set of configs to emulate colorgcc) available at
http://sourceforge.net/projects/colorifer/
CSed is a color stream editor. It works like sed, but makes color substitutions.
It is a simple filter that can be used to colorize the output of any program.
Csed supports all sed like address types:
'/REGEX/', 'NUMBER', 'FIRST~SEP', 'START,STOP', 'START,+NUMBER', 'START,~NUMBER'
You can also append '!' character to the end of an address specification to negate
the sense of the match
to colorize a whole string use 'p' command with address specification,
You can also use 's/REGEX/color/' command to colorize multiple substrings.
For example command '/.*/ p blue' will colorize whole string with blue color.
Colorifer is a wrapper to run program and colorize it's output. It works like "some-program 2>&1|([ -f some-file] && ./csed -f some-file)" command, but also return exit code of program and don't mix stdout and stderr of the program.
You can also use Csed to colorize your system log. Just run:
"tail -f /var/log/messages|csed -f syslog" You can find Sample config for it in data subdirecrory.
Authors
Stanislav Ievlev <inger@altlinux.org>
Building
You need following tools and libraries to compile libing:
- c++ compiler (gcc 3.2 or higher)
- libncursesxx library (0.0.1 or higher). Latest version available at http://sourceforge.net/projects/ndk-xx/
- boost library (1.30.2 or higher)
- GNU make (3.80 or higher)
- pcre library (for PerlRE class) (3.9 or higher)
To compile library just type "make".
Installing
Type "make install" to install library with header files to your system.
Bug reporting
Please report all bugs you find in the program directly to authors
