From 0bcb22f8e4ace9d5449432bce730b37d46379b72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rainer=20M=C3=BCller?= Date: Tue, 19 Feb 2013 22:19:47 -0500 Subject: [PATCH] Bug - Do not print new line after xterm title. With xterm.title=on, each command displayed an empty line on the terminal, which is not only unnecessary but also changes output format for the helper subcommands starting with an underscore. Signed-off-by: Paul Beckingham --- ChangeLog | 2 ++ src/Context.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 29345c3b7..d86194fd5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -99,6 +99,8 @@ Bugs + Fixed manpages that were not installed when running an out-of-source build (thanks to Vincent Petithory). + 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). ------ old releases ------------------------------ diff --git a/src/Context.cpp b/src/Context.cpp index a74add980..e2ec07a47 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -683,7 +683,7 @@ void Context::updateXtermTitle () std::string title; join (title, " ", a3.list ()); - std::cout << "]0;task " << command << " " << title << "" << std::endl; + std::cout << "]0;task " << command << " " << title << ""; } }