Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The Mac OSX Terminal will re-wrap lines when the window is resized. Is this functionality available in any terminal emulator for Linux?

I'd prefer to do this with terminals like gnome-terminal that are included in the Ubuntu repositories.

share|improve this question

closed as off-topic by fixer1234, DavidPostill, Tetsujin, Nifle, Kevin Panko Apr 11 '15 at 21:20

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking product, service, or learning material recommendations are off-topic because they become outdated quickly and attract opinion-based answers. Instead, describe your situation and the specific problem you're trying to solve. Share your research. Here are a few suggestions on how to properly ask this type of question." – fixer1234, DavidPostill, Tetsujin, Nifle, Kevin Panko
If this question can be reworded to fit the rules in the help center, please edit the question.

Ubuntu 15.04's gnome-terminal seems to support line-wrapping when the window is resized now. – sirlancelot Jul 21 '15 at 17:37
up vote 4 down vote accepted

rxvt-unicode-256color version 9.07-3 (as provided by arch Linux) is confirmed to do this. The version of urxvt on my debian stable system does not. It should be easy enough to figure out how the ubuntu version behaves.

Other than that, the terminals I know of that will re-wrap are 9term, M-x shell in emacs, and a weird old app called xmlterm, which is a terminal emulator made using mozilla xul. Sadly what these have in common is that they do not support curses terminal control (ie. no running vi or nano or top or emacs or nethack etc. in these terminals). And other than emacs M-x shell they appear to not be actively developed (or even all that easy to find any more).

share|improve this answer
rxvt-unicode v9.06 in Ubuntu 9.10 does this. v9.07 in Fedora 12 same as Arch (does). Very cool to know this. – SuperMagic Feb 22 '10 at 20:51
Thanks for the pointer that rxvt-unicode-256color works, however on my system it re-wraps only when enlarging the window. If you shrink the window, text is lost, and then when you re-enlarge it, you don't get it back. – ecloud Oct 25 '11 at 9:34
rxvt-unicode-256color on my Fedora 17 system rewraps correctly both when shrinking and enlarging the window. (Package I'm using is rxvt-unicode-256color-9.15-1.fc17.) – Jeremy Visser Dec 25 '12 at 6:56

GNU screen does this, and supports curses properly. Run it in whatever terminal emulator you want:

I would be surprised if tmux didn't automatically rewrap lines, too. tmux also supports curses; e.g., you can run vi in screen or tmux with no problems.

share|improve this answer

VTE (the engine of Gnome-terminal) supports this, starting with version 0.35.

share|improve this answer

gnome-terminal supports this from version 3.11 on (since late 2013):

From the Phoronix website:

For long lines of text within the GNOME Terminal, when expanding the window's screen the word-wrapping will now automatically update. This is a change that should be found in GNOME 3.12 but there's still some developers evaluating its design, etc. The updated Terminal has already landed in Fedora (21) Rawhide for those interested.

share|improve this answer
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – DavidPostill Apr 10 '15 at 12:26
@DavidPostill: In this case, it looks like the link is just a citation to support the answer. – fixer1234 Apr 10 '15 at 17:30

Not the answer you're looking for? Browse other questions tagged .