X-Spam-Check-By: sourceware.org Date: Thu, 9 Feb 2006 09:47:59 +0100 From: Samuel Thibault To: cygwin AT cygwin DOT com Subject: Re: Looks like some terminfo data is not correct Message-ID: <20060209084759.GD4215@implementation.labri.fr> Mail-Followup-To: cygwin AT cygwin DOT com References: <43EAF8ED DOT 3070608 AT ptc DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <43EAF8ED.3070608@ptc.com> User-Agent: Mutt/1.5.11 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: 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 Alex Shturm, le Thu 09 Feb 2006 00:10:21 -0800, a écrit : > If my TERM variable is set to either "cygwin" or "rxvt", after I exit > from VI the contents of the window gets restored. > If TERM is "xterm", it does not get restored. Yes. Some terminals don't support screen restoration. Recent versions of xterm _do_ support restoration, but because so many people wrote dumb xterm clones (konsole, gnome-terminal, ...), the terminfo entry had to remain dumb, and hence vi can't take advantage of recent xterm's possibility. So yes, the terminfo entry is crippled, but that's not terminfo's fault, but the one of dumb xterm clones. Some people are trying to get things right (have konsole & gnome-terminal people write their own terminfo entry, for letting xterm enhance his own), but it will be long. For now, start vi and type :help restorescreen, it explains how to set t_ti and t_te for xterm (beware that ^[ represent , which you should enter thanks to Ctrl-V ) Regards, Samuel -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/