This is the mail archive of the cygwin@sources.redhat.com 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]

RE: 'clear' does not clear entire screen (affects vim also)


Attached is a minor patch that uses the screen buffer width rather than the
window width to calculate the number of spaces to clear.

Brad Town


> The trouble appears to be due to the way it calculates how 
> many spaces to
> clear.  I'll look into it and submit a patch.
> 
> Brad Town
> 
> 
> > Problem:  Bottom portion of screen is not cleared by 'clear' 
> > if the visible
> > screen width is less than the actual (buffer) screen width. 
>  This also
> > affects vim because the bottom portion of screen in vim is 
> not cleared
> > before redrawing.  This leaves the existing characters on the 
> > screen in the
> > areas where no next is written (i.e. after the ends of 
> lines and blank
> > lines).
> > 
> > To reproduce the problem:
> > 
> > 1. From any bash shell, resize the window narrower so that 
> a scrollbar
> > appears at the bottom of the screen.
> > 2. vim a file or run 'clear'
> > 
> > Win2000
> > version 1.1.4
> > 
> > Jim Hickey
> > jim_hickey@hp.com

fhandler_console.cc.patch

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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