Made true color detection method static
This commit is contained in:
@ -60,7 +60,7 @@ void term::progress(int prefixlen,
|
||||
*_out << ' ' << std::setw(3) << perc << '%';
|
||||
}
|
||||
|
||||
bool term::has_truecolor() const {
|
||||
bool term::has_truecolor() {
|
||||
char* tc = getenv("COLORTERM");
|
||||
std::string colorterm {tc ? tc : ""};
|
||||
return colorterm.size() > 0 && (colorterm == "truecolor" || colorterm == "24bit");
|
||||
|
Reference in New Issue
Block a user