I really do hope gnome-terminal's implementation is much better than urxvt's. For example, rxvt doesn't rewrap until you reach the bottom of the screen - this makes no sense to me. Rxvt cuts double wide (CJK) characters in half, Gnome-terminal wraps them correctly. When the alternate screen is present (such as when "less" or "mc" is running) the content underneath (the one you get back when you quit the app) is not rewrapped in rxvt, only in Gnome-terminal. When you resize the window the scrollbar jumps back to the bottom in Rxvt, while it does its best to keep it around the currently visible content in Gnome-terminal. I tried to take care to get all the minor details as perfect as possible, I encourage you to give it a try and I hope you'll like it more than rxvt's rewrapping
Originally Posted by rohcQaH
It's not the drawing toolkit, it's the general concept. Text editors work on relatively small files (couple of megabytes maybe), files are linear stream of data with explicit newlines, and are fairly easy to handle. Terminals provide support for linearly printed text as well as absolute cursor positioning within the main canvas area (jumping anywhere, printing a few characters there, jumping again etc.), plus millions of other hairy tricks, it's not easy to reasonably define how this content needs to be rewrapped on a resize. Also, the amount of data (including the scrollback buffer) can easily be magnitudes larger than average text files.
Originally Posted by mark45
The terminal remembers a configurable number of lines, this is the scrollback buffer that you can access by Shift+PageUp or with the scrollbar. This has not changed (well, strictly speaking the implementation has changed a little but you shouldn't be able to notice it) and rewrapping doesn't have an impact at all as long as you don't resize the window.
Originally Posted by Azpegath
Rewrapping occurs and has a performance impact the moment you resize. On my average laptop, rewrapping takes around 0.2 seconds with a scrollback buffer of 1 million lines. Most people use a scrollback buffer somewhere between 1000 and 10000 lines, hence the performance penalty is negligible. Gnome-terminal allows you to have infinite scrollback, if it grows beyond a few million lines and then you resize the terminal then it's going to be really slow. For this reason, we plan to make rewrapping configurable so you can turn it off if you prefer giant scrollback and want to resize quickly.