settings: check if terminal supports window title once
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
|
||||
void windowTitle(const std::string &status)
|
||||
{
|
||||
if (strcmp(getenv("TERM"), "linux") && Config.set_window_title)
|
||||
if (Config.set_window_title)
|
||||
std::cout << "\033]0;" << status << "\7" << std::flush;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user