GNOME Bugzilla – Bug 340631
Printed lines containing tab characters are not wrapped correctly
Last modified: 2006-10-17 04:36:23 UTC
Please describe the problem: When a line containing single characters and tab characters alternatively is printed, gnome-terminal fails to wrap it correctly and any output wider than the terminal window is lost. This does not happen in xterm or konsole. To reproduce, give the following command (in bash shell): for ((k=1;k<100;k++)); do echo -n $'T\t'; done; echo This should output several lines of T:s separated by tabs, but in gnome-terminal only one line of output is seen. I think this is a pretty severe bug; it caused me a lot of confusion as I was trying to print long lines of tab-separated single character fields from a file. I'm surprised if it hasn't been reported yet, but I couldn't find such a report. Steps to reproduce: 1. try the above bash command 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Created attachment 71937 [details] [review] fix
Fixed in HEAD: 2006-08-31 Behdad Esfahbod <behdad@gnome.org> Bug 340631 – Printed lines containing tab characters are not wrapped correctly * src/vteseq.c (vte_sequence_handler_ta): make sure we don't move the cursor back when tabbing past the end of the line.