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 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

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]