Readme for project by Simon Walker
Colour printing library for command line applications
This program uses ascii codes to print terminal colours. Available colours are:
Both the background and foreground can be coloured seperately.
Colours class. It takes no construction parameters. One of
two methods to colour the text are as follows:
Use the one-parameter
colour::Colours c; cout << c.fg("red") << "Hello world" << c.reset() << endl;
Use the two parameter methods which return the colour back to normal after the text is printed:
colour::Colours c; cout << c.fg("red", "Hello world") << endl;
Also included are
ok methods for printing red and green
text on the default background of the terminal.
reset method sets the defaults for the terminal again.
The class can be disabled at any point by calling the
with a boolean.
- c++ compiler