'clear' does not clear entire screen (affects vim also)
Town, Brad
btown@ceddec.com
Tue Nov 14 06:51:00 GMT 2000
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fhandler_console.cc.patch
Type: text/x-diff
Size: 1111 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20001114/684b967f/attachment.bin>
More information about the Cygwin
mailing list