[PATCH] Cygwin: pty: Use redraw screen instead of clear screen.

Takashi Yano takashi.yano@nifty.ne.jp
Wed Nov 13 10:44:00 GMT 2019


On Wed, 13 Nov 2019 10:18:35 +0100
Corinna Vinschen wrote:
> On Nov 12 22:00, Takashi Yano wrote:
> > - Previously, pty cleared screen at startup for synchronization
> >   between the real screen and console screen buffer for pseudo
> >   console. With this patch, instead of clearing screen, the screen
> >   is redrawn when the first native program is executed after pty
> >   is created. In other words, synchronization is deferred until
> >   the native app is executed. Moreover, this realizes excluding
> >   $TERM dependent code.
> > ---
> >  winsup/cygwin/fhandler_tty.cc | 30 ++++++++++++++++--------------
> >  winsup/cygwin/tty.cc          |  2 +-
> >  winsup/cygwin/tty.h           |  2 +-
> >  3 files changed, 18 insertions(+), 16 deletions(-)
> 
> Great!  Pushed.

I have found the cursor position is broken even with this patch
if the following steps are executed.

1) start mintty
2) netsh
3) quit from netsh
4) start gnu screen
5) quit from gnu screen
6) netsh
7) winhttp show proxy

I will submit a patch for this issue.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>



More information about the Cygwin-patches mailing list