add support for pdcurses

This commit is contained in:
Andrzej Rybczak
2009-03-25 17:47:10 +01:00
parent f24db993aa
commit 1b22f307ea
5 changed files with 67 additions and 21 deletions

View File

@@ -51,10 +51,14 @@ namespace
void WindowTitle(const string &status)
{
# ifndef USE_PDCURSES
static const string term_type = getenv("TERM") ? getenv("TERM") : "";
if (term_type != "linux" && Config.set_window_title)
std::cout << "\033]0;" << status << "\7";
# else
(void)status;
# endif // USE_PDCURSES
}
}