Skip to content

Instantly share code, notes, and snippets.

@zvakanaka
Created April 8, 2016 03:20
Show Gist options
  • Save zvakanaka/f78433cbca93fad517b1eec48f33289f to your computer and use it in GitHub Desktop.
Save zvakanaka/f78433cbca93fad517b1eec48f33289f to your computer and use it in GitHub Desktop.
**************vt terminal colors guide***************
cout << "\E[1;31m" << "thick red text!\n";
^
property 1
cout << "\E[0;31m" << "red text!\n";
^^
property 2
-values
1 = thick
4 = underline
5 = blink
7 = inverted
8 = blank
0, 2, 3, 6, 9-37, 39, 49-99, 107+ = normal
???? 38, 48= black
40-47 = highlight
highlights = 40 = black
41, 101 = red
42, 102 = green
43, 103 = yellow
44, 104 = blue
45 = magenta
46, 106 = cyan
47 = grey
100 = grey highlight characters only
set back to normal: cout << "\E[0m";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment