Parcourir la source

Print typical colors

DricomDragon il y a 5 ans
Parent
commit
872d97ce85
1 fichiers modifiés avec 18 ajouts et 0 suppressions
  1. 18 0
      colors/main.cpp

+ 18 - 0
colors/main.cpp

@@ -5,6 +5,24 @@ using namespace std;
 int main() {
 	cout << "Show colors" << endl;
 
+	cout << endl << "Typical combinations" << endl;
+	cout << "\033[0;30m" << "Black" << endl;
+	cout << "\033[1;30m" << "Dark Gray" << endl;
+	cout << "\033[0;34m" << "Blue" << endl;
+	cout << "\033[1;34m" << "Light Blue" << endl;
+	cout << "\033[0;32m" << "Green" << endl;
+	cout << "\033[1;32m" << "Light Green" << endl;
+	cout << "\033[0;36m" << "Cyan" << endl;
+	cout << "\033[1;36m" << "Light Cyan" << endl;
+	cout << "\033[0;31m" << "Red" << endl;
+	cout << "\033[1;31m" << "Light Red" << endl;
+	cout << "\033[0;35m" << "Purple" << endl;
+	cout << "\033[1;35m" << "Light Purple" << endl;
+	cout << "\033[0;33m" << "Brown" << endl;
+	cout << "\033[1;33m" << "Yellow" << endl;
+	cout << "\033[0;37m" << "Light Gray" << endl;
+	cout << "\033[1;37m" << "White" << endl;
+
 	cout << "End." << endl;
 
 	return 0;