showlog: Add print_line_ansi(), a colorizer for the console
commit245dcda0a7b4ed4a1ed3038d26efdfe63d4c9515
authorAndreas Ericsson <ae@op5.se>
Sun, 24 Jan 2010 22:43:27 +0000 (24 23:43 +0100)
committerAndreas Ericsson <ae@op5.se>
Sun, 24 Jan 2010 22:44:43 +0000 (24 23:44 +0100)
tree4c383c9589feb4ace4cf9528d034aea601a6bc65
parentd72d0314e0a563a447f560d44a7d7e7c46fb88a0
showlog: Add print_line_ansi(), a colorizer for the console

Events are printed in color, using a different color depending on the
event type and the status of the object concerned.

Colorized output is the default if output goes to a terminal. It can
be negated with the --ascii switch, and forced with the --ansi switch.

Signed-off-by: Andreas Ericsson <ae@op5.se>
logutils.h
showlog.c
test-lparse.c