After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 545869 - terminal does not handle tab character in last column correctly
terminal does not handle tab character in last column correctly
Status: RESOLVED NOTABUG
Product: vte
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: VTE Maintainers
VTE Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-08-01 15:13 UTC by Pedro Villavicencio
Modified: 2008-08-05 18:02 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Pedro Villavicencio 2008-08-01 15:13:08 UTC
this report has been filed here:

https://bugs.edge.launchpad.net/ubuntu/+source/vte/+bug/253579

"If a line has a tab character in the last column, gnome-terminal does not display the tab.

To reproduce:
> python -c 'print "x"*79 + "\tABC"'

(Assuming that your terminal width is 80 characters.)

Expected behavior:
The terminal should display 79 "x"s and one tab character in the first line, and the letters "ABC" in the continuation line.

Actual behavior:
The terminal displays 79 "x"s and the letter "A" in the first line, and the letters "BC" in the continuation line. The tab character is lost.

I am using hardy (updated from a fresh install of gutsy) with 2.22.1-0ubuntu2.

*This may not be a bug in gnome-terminal* - xterm shows the same behavior."

Thanks,
Comment 1 Behdad Esfahbod 2008-08-05 06:47:01 UTC
Yeah, I fixed tab handling code in vte to match that of xterm.  That is, a tab character does nothing at the end of line.  I'm inclined to keep it as is.
Comment 2 Philipp Kohlbecher 2008-08-05 10:42:02 UTC
Do you know why xterm does it this way? Isn't this a bug in xterm as well?
Comment 3 Behdad Esfahbod 2008-08-05 17:19:14 UTC
Bug 340631 is the reason I changed it.
Comment 4 Philipp Kohlbecher 2008-08-05 17:59:00 UTC
But what's the reason not to fix this bug?
Comment 5 Behdad Esfahbod 2008-08-05 18:02:10 UTC
People have generally liked vte to behave like xterm, as that's what everyone tests their application against.