[Details about Linux Terminal]
foreground | background | |
---|---|---|
black | 30 | 40 |
red | 31 | 41 |
green | 32 | 42 |
yellow | 33 | 43 |
blue | 34 | 44 |
magenta | 35 | 45 |
cyan | 36 | 46 |
white | 37 | 47 |
[Example of coloured text in c++]
std::cout << "\033[1;31mbold red text\033[0m\n";