Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 8482

Summary: cookie left on screen when "ZZ" exiting "TERM=xterm vi"
Product: [Retired] Red Hat Linux Reporter: Ronald Cole <ronald>
Component: vimAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED RAWHIDE QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 6.1CC: dr, luca.bonomi
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-03-30 14:49:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ronald Cole 2000-01-15 00:18:59 UTC
[ronald@yakisoba ronald]$ TERM=xterm vi
c[ronald@yakisoba ronald]$
^ this is the undesirable cookie

[ronald@yakisoba ronald]$ TERM=vt100 vi
[ronald@yakisoba ronald]$
^ no cookie, as I would expect

This is probably a terminfo bug, but there is no "terminfo" component
to select.

This doesn't happen on RH6.0.  Really annoying to look at.  My productivity
has been lower since...  ;)

Comment 1 Bernhard Rosenkraenzer 2000-01-18 10:10:59 UTC
Doesn't happen to me on a current 6.2 snapshot...
Which terminal are you using? xterm, konsole, gnome-terminal, rxvt, ..... ?

Comment 2 Ronald Cole 2000-01-18 20:16:59 UTC
gnome-terminal

Comment 3 Bill Nottingham 2000-02-05 20:38:59 UTC
Only happens with /bin/vi, not vim.

Comment 4 khp 2000-03-04 01:13:59 UTC
This happens to me with /usr/bin/vim on three 6.1 systems:
VIM - Vi IMproved 5.4 (1999 Jul 25, compiled Jul 27 1999 18:08:35)
but not with gvim. Note that the annoying "c" character is put out upon entering
vim, not when exiting. I'm using gnome-terminal.

Comment 5 Luca Bonomi 2000-03-30 14:49:59 UTC
This happens to me since 6.1 and also in 6.2 using 'konsole'.
Not seen if I use kvt or xterm.

Comment 6 Bernhard Rosenkraenzer 2000-08-08 12:23:18 UTC
fixed

Comment 7 Daniel Roesen 2000-12-22 00:27:19 UTC
Fixed in rawhide vims? I heard that newest gnome-terminal doesn't exhibit this
problem. Is it a vim bug or gnome-terminal problem?

Comment 8 Ronald Cole 2000-12-22 00:33:39 UTC
I don't know.  *Something* was broken in 6.1 and 6.2.  It seems fixed in 7.0.  I
don't know about rawhide.

Comment 9 Daniel Roesen 2000-12-22 02:11:36 UTC
Rawhide vim rebuilt from SRPM on 6.2 works. No more bogus "c" on stdout.

Comment 10 Pete Zaitcev 2000-12-24 03:53:58 UTC
Here is the problem as I see it. In term.c, vim uses
KS_CRV to request version, with escape sequence "\033[>c".
This is taken from xterm docs, but is wrong. Actual sequence
has no '>', to which both xterm and gnome-terminal reply.
However, if one would remove '>', he/she triggers another
bug in vim: version reply is not eaten properly and it gets
input as a vim command.

The best fix is to comment out the KS_CRV entry in term.c.

Did anyone communicate this to vim folks?