Bug 87396

Summary: gnome-terminal doesn't handle clear to end of screen properly
Product: [Retired] Red Hat Linux Reporter: Gilles Detillieux <grdetil>
Component: vteAssignee: Ray Strode [halfline] <rstrode>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-11-05 03:05:52 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 Gilles Detillieux 2003-03-26 16:46:50 UTC
Description of problem:
When doing a clear to EOS operation (Esc [ J), gnome-terminal doesn't do it
properly like xterm and other ANSI-compliant terminal emulators.  It should
clear from the current cursor position to the end of the line, and all lines
below it, but leave any text left of or above the cursor intact.  What it does
is clear all text on or below the line where the cursor is, so text left of
the cursor is wiped out.

Version-Release number of selected component (if applicable):
2.0.1-5

How reproducible:
Try outputting an Esc-[-J sequence with the cursor somewhere in the middle
of the line, in both xterm and gnome-terminal and note the difference.

Steps to Reproduce:
1. In gnome-terminal, at the shell prompt, type: echo -e 'xxxx\033[Jyyyy'
2. Note the output: "    yyyy", not "xxxxyyyy".
3. Try again in xterm, and note it leaves "xxxxyyyy" on the screen.
    
Actual results:
    yyyy

Expected results:
xxxxyyyy

Additional info:

Comment 1 Gilles Detillieux 2003-04-11 22:14:15 UTC
This was a problem with vte-0.8.19-2.

It seems to be fixed in vte-0.10.25-1 under Red Hat 9,
as are a few other problems that were reported for vte 0.8,
but it sure would be nice to have a backport of vte-0.10.25-1
for Red Hat 8.0.  It seems that would require also updating
gnome-terminal and any other packages that depend on vte, as
the shared library version number for libvte.so jumped from
2 to 4.