Do not output title escape sequences when WINPTY_FLAG_PLAIN_OUTPUT sets
This commit is contained in:
parent
afacf7792f
commit
b60ded1cf2
@ -602,9 +602,11 @@ void Agent::syncConsoleTitle()
|
|||||||
{
|
{
|
||||||
std::wstring newTitle = m_console.title();
|
std::wstring newTitle = m_console.title();
|
||||||
if (newTitle != m_currentTitle) {
|
if (newTitle != m_currentTitle) {
|
||||||
std::string command = std::string("\x1b]0;") +
|
if (!m_plainMode && !m_conoutPipe->isClosed()) {
|
||||||
utf8FromWide(newTitle) + "\x07";
|
std::string command = std::string("\x1b]0;") +
|
||||||
m_conoutPipe->write(command.c_str());
|
utf8FromWide(newTitle) + "\x07";
|
||||||
|
m_conoutPipe->write(command.c_str());
|
||||||
|
}
|
||||||
m_currentTitle = newTitle;
|
m_currentTitle = newTitle;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user