summaryrefslogtreecommitdiff
path: root/src/status.cpp
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2009-03-25 17:47:10 +0100
committerAndrzej Rybczak <electricityispower@gmail.com>2009-03-25 17:47:10 +0100
commit1b22f307eaec7ebaad1f0a5c431f703a1967ca24 (patch)
treeae0bde42c7f1ec3170a30933369a0cadaf195c26 /src/status.cpp
parentf24db993aa5023aadb6aa90e7f2cbc70dd475e19 (diff)
add support for pdcurses
Diffstat (limited to 'src/status.cpp')
-rw-r--r--src/status.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/status.cpp b/src/status.cpp
index 62cde76f..58c41710 100644
--- a/src/status.cpp
+++ b/src/status.cpp
@@ -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
}
}