lots of log message and fixed bad_file_descriptor issue

This commit is contained in:
hugogogo
2022-08-22 01:50:28 +02:00
parent 469eca8aa9
commit 5225e3258b
18 changed files with 186 additions and 112 deletions

View File

@@ -301,11 +301,11 @@ void print_special(std::string str)
{
c = str[i];
if (c == '\r')
std::cout << YELLOW << "\\r" << RESET;
std::cerr << YELLOW << "\\r" << RESET;
else if (c == '\n')
std::cout << YELLOW << "\\n" << RESET << "\n";
std::cerr << YELLOW << "\\n" << RESET << "\n";
else
std::cout << c;
std::cerr << c;
std::fflush(stdout);
}
}