Console text re-coloring
Working in Windows console is made easier with some coloring. CTRC scans its standard input and sends it back to its standard augmented with coloring according to detected tags.
Typically CTRC should be piped with another program or command for which we need coloring.
Basic command line
crtc -c=COLOR~PATTERN
Where COLOR is one of the available color names and PATTERN is the text to detect, e,g. :
ctrc -c=red~error -c=yellow~warning
Available colors (d_ stands for dark) : black, d_red, d_green, d_yellow, d_blue, d_magenta, d_cyan, d_gray, gray, red, green, yellow, blue, magenta, cyan, white.
To enable easy debugger attachment, CRTC can be paused at start using '-p' argument, e.g. :
ctrc -c=red~error -c=yellow~warning -p
Log more information upon errors and successes using '-v' argument, e.g. :
ctrc -c=red~error -c=yellow~warning -v
Informations are outputted to standard output (std::out). Errors are outputted to stand error (std::err).
- Enable only partial line coloring
- Enable use of regular expressions
- Enable background colors
CRTC is somewhat similar to cmdcolor. Both use piping, but they don't detect input the same way.