fixed issue with persistent formatting
This commit is contained in:
@ -33,7 +33,7 @@ std::string console_output::get_code(const int attr) {
|
|||||||
if (attr < 255)
|
if (attr < 255)
|
||||||
return "\033[0m";
|
return "\033[0m";
|
||||||
|
|
||||||
std::string result = "\033[";
|
std::string result = "\033[0m\033[";
|
||||||
|
|
||||||
if (attr & A_STANDOUT)
|
if (attr & A_STANDOUT)
|
||||||
result += "1;";
|
result += "1;";
|
||||||
|
Reference in New Issue
Block a user