24 void ColourTerminal(
unsigned char fg,
unsigned char bg,
unsigned char attr)
27 HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
28 SetConsoleTextAttribute(hConsole, fg | (bg<<4) | attr);
31 printf(
"\033[%d;%dm", attr, fg + 30);
39 ColourTerminal(TerminalUtils::TERMINAL_COL_WHITE);
45 void TerminalInformation(
const char* text)
47 ColourTerminal(TerminalUtils::TERMINAL_COL_BLUE, TerminalUtils::TERMINAL_COL_BLACK, TerminalUtils::TERMINAL_ATTR_BRIGHT);
52 void TerminalAlert(
const char* text)
54 ColourTerminal(TerminalUtils::TERMINAL_COL_GREEN, TerminalUtils::TERMINAL_COL_BLACK, TerminalUtils::TERMINAL_ATTR_BRIGHT);
59 void TerminalWarning(
const char* text)
61 ColourTerminal(TerminalUtils::TERMINAL_COL_RED, TerminalUtils::TERMINAL_COL_BLACK, TerminalUtils::TERMINAL_ATTR_BRIGHT);
Subroutines to spice up stdout.