Bug 474798 - Text is not re-wrapped dynamically on terminal resize
Summary: Text is not re-wrapped dynamically on terminal resize
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-terminal
Version: 10
Hardware: All
OS: Linux
low
high
Target Milestone: ---
Assignee: Behdad Esfahbod
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-12-05 12:33 UTC by An. N
Modified: 2013-09-10 19:25 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-12-05 19:32:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description An. N 2008-12-05 12:33:58 UTC
Description of problem:
Text wrapped at column 80 (default) is not re-wrapped when the terminal is being resized. Earlier versions of Fedora supported this.

This is a major problem since if you run a command which outputs a lot of long lines, you need to run it again in order to be able to make any sense of the output in a bigger window. Previously it was possible just to resize the terminal and lines would re-wrap automatically to match the terminal width.

I'm not even sure this should be filed under termcap but it's really annoying.

Version-Release number of selected component (if applicable):
FC10 default

How reproducible:
Always

Steps to Reproduce:
1. Start gnome-terminal or xterm or rxvt
2. Run the "export" shell command for example
3. Resize the terminal by expanding it horizontally by 10 or 20 columns
  
Actual results:
Text is cut off at column 80 and continued in a new line

Expected results:
Text re-wraps dynamically as the terminal is being resized, taking advantage of extra real estate

Additional info:
The same thing happens when the terminal size is being reduced instead of expanded. Text is not being re-wrapped.

Comment 1 Miroslav Lichvar 2008-12-05 13:47:59 UTC
This isn't related to termcap, it's a terminal emulator feature. I don't think xterm ever supported it, not sure about gnome-terminal. The only terminal I know that supports it is rxvt-unicode.

Which versions of Fedora supported this?

Comment 2 An. N 2008-12-05 14:43:58 UTC
I think FC7 supported this in gnome-terminal, I haven't used 8 or 9 extensively. I'm not 100% sure if it was a terinal feature though, but I'm sure that I could had dynamically wrapped text i.e. when logging in remotely. In fact, the bash command line re-wraps but the text which has already "been displayed" does not re-wrap.

Where do you suggest I file this then?

Sorry for troubling you.

Comment 3 Miroslav Lichvar 2008-12-05 18:01:05 UTC
Wrapping in bash command line is handled by readline, not the terminal.

Ok, let's try reassigning it to gnome-terminal.

Comment 4 Behdad Esfahbod 2008-12-05 19:32:17 UTC
I'm 100% sure this never ever was implemented in gnome-terminal.  I say that because I still don't know how to implement it without shovelling the entire vte code base.

You probably piped it to less before.

Anyway, the upstream bug for this is:
http://bugzilla.gnome.org/show_bug.cgi?id=336238

Comment 5 Egmont Koblinger 2013-09-10 19:25:07 UTC
I'm making great progress in implementing rewrapping in VTE (gnome-terminal etc.). Please see the upstream bug at https://bugzilla.gnome.org/show_bug.cgi?id=336238 , feel free to try my patch if you're a hacker kind. In case of any technical feedback, please comment in that upstream bug, thanks! Hopefully my work will soon end up in mainstream VTE.


Note You need to log in before you can comment on or make changes to this bug.