From b60ded1cf207f21ccad064ce14db45d42caa27e7 Mon Sep 17 00:00:00 2001 From: jackyzy823 Date: Fri, 14 Dec 2018 14:16:31 +0800 Subject: [PATCH 1/2] Do not output title escape sequences when WINPTY_FLAG_PLAIN_OUTPUT sets --- src/agent/Agent.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/agent/Agent.cc b/src/agent/Agent.cc index a3ab21b9..986edead 100644 --- a/src/agent/Agent.cc +++ b/src/agent/Agent.cc @@ -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; } } From 7e59fe2d09adf0fa2aa606492e7ca98efbc5184e Mon Sep 17 00:00:00 2001 From: Ryan Prichard Date: Wed, 19 Dec 2018 00:35:18 -0800 Subject: [PATCH 2/2] Remove tea-ci drone.yml and switch status badge to Appveyor --- .drone.yml | 17 ----------------- README.md | 2 +- 2 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 63d853f6..00000000 --- a/.drone.yml +++ /dev/null @@ -1,17 +0,0 @@ -# Build configure for https://www.tea-ci.org (fork of Drone CI with Msys2 support) -build: - image: teaci/msys$$arch - pull: true - shell: msys$$arch - commands: - - pacman -S --needed --noconfirm --noprogressbar mingw-w64-cross-gcc mingw-w64-cross-crt-git - - ./configure - - make - - make tests - - build/trivial_test.exe - - mintty --log - --exec build/winpty.exe cmd /c ver | grep Windows - -matrix: - arch: - - 64 - - 32 diff --git a/README.md b/README.md index a6520fc3..bc8e7d6e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # winpty -[![Build Status](https://tea-ci.org/api/badges/rprichard/winpty/status.svg)](https://tea-ci.org/rprichard/winpty) +[![Build Status](https://ci.appveyor.com/api/projects/status/69tb9gylsph1ee1x/branch/master?svg=true)](https://ci.appveyor.com/project/rprichard/winpty/branch/master) winpty is a Windows software package providing an interface similar to a Unix pty-master for communicating with Windows console programs. The package