Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Mon, 24 Mar 2003 18:43:27 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Elfyn McBratney cc: cygwin AT cygwin DOT com, Randall R Schulz Subject: Re: vim quits and cygwin window contents not restored In-Reply-To: <024301c2f25a$363fe250$ab474e51@ellixia> Message-ID: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 24 Mar 2003, Elfyn McBratney wrote: > > It used to work for me, but a recent update has caused it to cease > > working for me, too. Unfortunately, I'm not sure which--wasn't there an > > ncurses update recently? Perhaps when it's convenient, I'll try to back > > up to see if that makes screen restore start working again. > > > > One other thing I've noticed is that "less" restores the screen but Vim > > doesn't. > > FWICS (acronym alert: "From What I Can See" :-) Yes, but you don't get the credit. It's been used before... :-p > there is no difference. I've been switching libncurses and ncurses and I > don't think anything has changed. Perhaps a change in the termcap? > > Regards, > Elfyn McBratney Well, I've been reading some vim help. A few interesting things surfaced. For details, "help restorescreen", "help term", "help terminfo", and "help xterm-screens" in vim. FWIW, it works for me in an xterm, but doesn't in the "bash window" (we *really* ought to come up with a better name for that). Looks like vim doesn't recognize TERM=cygwin and doesn't set t_ti and t_te appropriately. These two variables control the "alternate screen" feature. As they aren't even defined for TERM=cygwin, I don't know how it ever worked (unless termcap/terminfo were changed recently). Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk! -- /usr/games/fortune -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/