Skip to content

Commit

Permalink
Merge pull request #163 from jackyzy823/master
Browse files Browse the repository at this point in the history
Disable outputing title escape sequences when WINPTY_FLAG_PLAIN_OUTPUT sets
  • Loading branch information
rprichard authored Dec 19, 2018
2 parents afacf77 + b60ded1 commit a6174e8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/agent/Agent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -602,9 +602,11 @@ void Agent::syncConsoleTitle()
{
std::wstring newTitle = m_console.title();
if (newTitle != m_currentTitle) {
std::string command = std::string("\x1b]0;") +
utf8FromWide(newTitle) + "\x07";
m_conoutPipe->write(command.c_str());
if (!m_plainMode && !m_conoutPipe->isClosed()) {
std::string command = std::string("\x1b]0;") +
utf8FromWide(newTitle) + "\x07";
m_conoutPipe->write(command.c_str());
}
m_currentTitle = newTitle;
}
}

0 comments on commit a6174e8

Please sign in to comment.