settings: check if terminal supports window title once

This commit is contained in:
Andrzej Rybczak
2015-09-12 22:55:50 +02:00
parent 9f9fcecd61
commit f28d60e0c7
2 changed files with 18 additions and 4 deletions

View File

@@ -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;
}