This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
RE: 'clear' does not clear entire screen (affects vim also)
- To: "'cygwin at sources dot redhat dot com'" <cygwin at sources dot redhat dot com>
- Subject: RE: 'clear' does not clear entire screen (affects vim also)
- From: "Town, Brad" <btown at ceddec dot com>
- Date: Tue, 14 Nov 2000 09:52:09 -0500
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