njh/jackmeter — pull request #2 by smiszym (2014-07-24 14:02:15+00:00)
Title: Add colored output option

This simply adds a switch `-c` to the command-line, which adds green-yellow-red colours to the meter.

To make it easier to code, I added `char buffer[]`, which I fill with the meter and then print to the screen in one stroke.

There is one flaw with my code: it works well only for about 80 columns, on other widths the colors will not be proportional.