I won't even mention what my struggle was to get that code to work (linker errors all over the place if you use that code in more than 1 file).
The problem is, even after completely deleting the code and running my program the console still displays all the text in Aqua (the last colour I used in one of the test runs).
How do I restore original settings? Shouldn't the console automatically switch to original attributes after closing the program?