[PATCH] Cygwin: pty: Disable ResizePseudoConsole() if stdout is redirected.
Corinna Vinschen
corinna-cygwin@cygwin.com
Tue Oct 27 09:27:33 GMT 2020
On Oct 27 17:26, Takashi Yano via Cygwin-patches wrote:
> - Calling ResizePseudoConsole() generates some escape sequences.
> Due to this behaviour, if the output of non-cygwin app is piped
> to less, screen is sometimes distorted when the screen is resized.
> With this patch, ResizePseudoConsole() is not called if stdout is
> redirected.
> ---
> winsup/cygwin/fhandler_tty.cc | 8 ++++++--
> winsup/cygwin/tty.cc | 1 +
> winsup/cygwin/tty.h | 1 +
> 3 files changed, 8 insertions(+), 2 deletions(-)
Pushed.
Thanks,
Corinna
More information about the Cygwin-patches
mailing list