From 1acca770db5f8032013bfb7c307a2f82c1c2443b Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sat, 28 Mar 2009 17:29:30 +0100 Subject: [PATCH] do not use WindowTitle() with pdcurses --- src/status.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/status.cpp b/src/status.cpp index 02d8dbb2..3aa94f2c 100644 --- a/src/status.cpp +++ b/src/status.cpp @@ -49,17 +49,17 @@ namespace bool block_progressbar_update = 0; bool allow_statusbar_unlock = 1; +# ifndef USE_PDCURSES 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 } +# else +# define WindowTitle(x); +# endif // USE_PDCURSES } void StatusbarGetStringHelper(const std::wstring &)