mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-24 08:56:43 +02:00
[PATCH] Bug
- Do not print xterm titles without a tty. Writing escape sequences for xterm titles is unnecessary when the output is piped into another tool. Signed-off-by: Paul Beckingham <paul@beckingham.net>
This commit is contained in:
parent
631d03ce38
commit
48b9fdc152
2 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue