소스 검색

Fix color reset for black background terminals

DricomDragon 4 년 전
부모
커밋
b188bb4dd1
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      flashLearn/Revision.cpp

+ 2 - 2
flashLearn/Revision.cpp

@@ -95,7 +95,7 @@ bool Revision::corriger( string saisie[3] )
     /// Réussite
     /// Réussite
     if ( exact ) {
     if ( exact ) {
         cout << "\033[1;32m" << "Well done ! Progression : ";
         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
         /// Retirer de la liste
         delete m_file.front();
         delete m_file.front();
@@ -105,7 +105,7 @@ bool Revision::corriger( string saisie[3] )
 
 
     /// Echec
     /// Echec
     else {
     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";
         cout << "The good answer were";
         for ( int i(0); i<4; i++ )
         for ( int i(0); i<4; i++ )
             cout << ' ' << '"' << m_file.front()->get( i ) << '"';
             cout << ' ' << '"' << m_file.front()->get( i ) << '"';