diff --git a/ChangeLog b/ChangeLog index bade9ddd6..57964e6bf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -113,6 +113,8 @@ Bugs + Added missing localized confirmation strings (thanks to Rainer Müller). + Fixed bug that added an extra newline after setting the terminal title (thanks to Rainer Müller). + + Fixed a bug where the terminal title was tried to be set without a tty + (thanks to Rainer Müller). ------ old releases ------------------------------ diff --git a/src/Context.cpp b/src/Context.cpp index 014a26ba6..60c72122e 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -676,7 +676,7 @@ void Context::clear () // this output?'. void Context::updateXtermTitle () { - if (config.getBoolean ("xterm.title")) + if (config.getBoolean ("xterm.title") && isatty (fileno (stdout))) { std::string command; a3.find_command (command);