Browse Source

Fix color reset for black background terminals

DricomDragon 4 years ago
parent
commit
b188bb4dd1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      flashLearn/Revision.cpp

+ 2 - 2
flashLearn/Revision.cpp

@@ -95,7 +95,7 @@ bool Revision::corriger( string saisie[3] )
     /// Réussite
     if ( exact ) {
         cout << "\033[1;32m" << "Well done ! Progression : ";
-        cout << 100 - ( m_file.size() * 100 / m_total ) << "%" << "\033[0;30m" << endl;
+        cout << 100 - ( m_file.size() * 100 / m_total ) << "%" << "\033[0m" << endl;
 
         /// Retirer de la liste
         delete m_file.front();
@@ -105,7 +105,7 @@ bool Revision::corriger( string saisie[3] )
 
     /// Echec
     else {
-        cout << "\033[1;31m" << "Oups ! You will try again later ..." << "\033[0;30m" << endl;
+        cout << "\033[1;31m" << "Oups ! You will try again later ..." << "\033[0m" << endl;
         cout << "The good answer were";
         for ( int i(0); i<4; i++ )
             cout << ' ' << '"' << m_file.front()->get( i ) << '"';