Just wanted to pass this along, I got this response from a
guy on the list. Though I must say, I've also had this
problem with Konsole under KDE. --KenG



I reported this bug some time ago.  Just recently, I got a
reply on the
issue:

Date: Mon, 20 Mar 2000 15:51:43 -0800
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED], Martin Brown
<[EMAIL PROTECTED]>
Subject: It's actually a vim startup problem

Hi Martin and the gnome-terminal bug team!

Here's a follow-up to the "exit vi problem" (gnome bug
4052).

When the text editor vim starts up it issues some terminal
escape codes,
beginning with the following sequence:

ESC [ > c

Gnome-terminal sets the TERM variable to xterm, so the same
codes get sent under both xterm and gnome-terminal.

Xterm does not print anything from this sequence, while
gnome-terminal prints a "c". Ensuing terminal codes clear
the screen and set up the vi start page. The "c" is
revealed when vim quits and the original (command-line)
screen is restored (my version of xterm, interestingly,
does not properly restore the screen--previous lines are
blanked out;
gnome-terminal does restore the screen properly, "c" and
all).

I could not find any reference to what the escape code ESC
[ > c could be, so perhaps this is a bug in vim. The
behavior is the same when using TERM=xterm and
TERM=builtin_xterm, so I don't think this is a termcap bug.

I have only observed this behavior on Redhat Linux version
6 (I have not looked for it elsewhere, though), both i686
and PPC versions.

One workaround is to set the TERM environment variable to
vt102, which also removes the screen-restore function.

Another solution to the "c" problem is to use the Berkeley
"new" vi (nvi).

Note:

You can trap the escape codes by tying 

$ vim > out

and then quitting by typing 

ZZ

after getting the "Output is not to a terminal" warning.
You can then examine the file "out" with your text editor.

--Alex Eulenberg

----------
                          
                             - Martin J. Brown, Jr. -
                             - [EMAIL PROTECTED] -

               PGP key id#: E87466BB keyserver:
certserver.pgp.com


=====
Ken Gosier
[EMAIL PROTECTED]

__________________________________________________
Do You Yahoo!?
Send online invitations with Yahoo! Invites.
http://invites.yahoo.com


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to