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

Corinna Vinschen corinna-cygwin@cygwin.com
Thu Jul 28 20:21:00 GMT 2016


On Jul 28 21:51, Corinna Vinschen wrote:
> The situation I was thinking about is a bit different.  Consider an only
> partially filled console buffer.  In contrast to your typical UNIX
> terminal application the buffer doesn't grow.  It's a fixed size and the
> scroll bar reflects this buffer size right from the start.  So the user
> can scroll the console windows down into the not yet used buffer area,
> i.e.:
> 
> Before:
> 
>    buffer
>    +---
>    | nonblank
>    | nonblank
>    | blank
>    | blank
>    | > [] cursor
>    | blank
>    | blank      window
>    | blank      ---+
>    | blank         |
>    | blank         |
>    | blank      ---+
>    | blank
>    +---
> 
> Performing the clear screen in this situation, the cursor will be
> repositioned to the first line in the current window and the blank lines
> between the old cursor position and the new cursor position

... will invariably become part of the buffer.  Sorry, I lost track
mid-sentence.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20160728/2ebe577d/attachment.sig>


More information about the Cygwin mailing list