delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/02/09/10:54:38

X-Spam-Check-By: sourceware.org
Date: Thu, 9 Feb 2006 09:47:59 +0100
From: Samuel Thibault <samuel DOT thibault AT ens-lyon DOT org>
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
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
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <ESC>, which you
should enter thanks to Ctrl-V <ESC>)

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019