This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Strange behavior of cmd.exe when hammered with clear screen operations from Cygwin program.

On Jul 29 08:59, Kaz Kylheku wrote:
> On 29.07.2016 03:39, Corinna Vinschen wrote:
> > I applied a patch to perform this action.  It's in the latest
> > 2.6.0-0.5 test release I just announced.
> [...]
> I've done some interactive testing with this using
> the interpreter for a Lisp dialect. I would evaluate
> this expression to generate a 5 second delay and then
> a clear screen VT100 sequence:
>   (progn (usleep 5000000) (put-string "\e[2J"))
> during this time, I would scroll the buffer somewhere.
> I also tested with a cursor position somewhere in the
> middle of the window, having issued:
>   (put-string "\e[12H")
> The programming language details don't matter; we
> could do this with bash echo $'\e...' and sleep 5.
> [...]
> With the third patch, I've run into behavior in which the
> display isn't cleared at all if the clear is issued
> in a scrolled-back state.

I can't reproduce this.  If I don't click wildly on the scroll bat at
the time the clear screen action takes place (so I move the window right
after clear screen), the cursor is positioned at the top of the screen,
at the end of the buffer.  So, how would I reproduce your observation so
that all window positioning is guaranteed to take place *before* the
clear screen action and still see the broken output?


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: signature.asc
Description: PGP signature

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]