mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-06-17 03:50:03 +02:00
console_ansi.cpp: use isColorsSupported() instead of disable_color
This commit is contained in:
parent
f676f2e7ca
commit
f630a8344c
1 changed files with 2 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ namespace console {
|
|||
|
||||
std::ostream& reset(std::ostream& os) {
|
||||
|
||||
if (disable_color) {
|
||||
if (!isColorsSupported(os)) {
|
||||
return os;
|
||||
}
|
||||
return os << "\033[0m";
|
||||
|
|
@ -42,7 +42,7 @@ std::ostream& operator<<(std::ostream& os, const fg& obj) {
|
|||
int attr;
|
||||
int code;
|
||||
|
||||
if (disable_color) {
|
||||
if (!isColorsSupported(os)) {
|
||||
return os;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue