inspircd/inspircd — pull request #338 by ChrisTX (2012-10-13 22:49:16+00:00)
Title: Replace printf(_c) with iostream

Kill \033[1;32m with fire. This patch removes the usage of printf/printf_c throughout the code base and uses a more portable (and easier to read) approach to coloring.

This has been tested with:
- VC++2012 on Windows
- GCC 4.7.2 on Linux

It also resolves a problem the Windows version previously had: the console background color was always set to black. This doesn't have to be, and usually isn't the case in PowerShell.

Please note that this only touches printf/_c, not other printf functions, which at part have to be used in APIs and cannot removed in 2.0 therefore.
Furthermore, this does not remove all printf calls from configure.cpp, just those that required printf_c so colors.h could be killed off.