Sidenote:
for those who prefer C++, this sort of thing will also work. I tried it:
#include <iostream> #define RED "\x1b[31m" #define RESET "\x1b[0m" int main() { std::cout << RED << "a bunch of text" << RESET ; return 0; }