I am specifically looking for is dynamic formatting of output. In every terminal emulator I can remember having used in Linux, when some program prints to the screen, the output gets formatted to fit to the terminal window so that longer lines will wrap around. If I then change the width of the window, the previous wrapped around formatting still remains.
On OSX, Terminal.app acts differently. The text is still formatted for the current size of window just as on Linux terminal emulators. However if I re-size the window, the text is automatically reformatted to match the new dimensions.
This is super useful when, after the running a utility, I realize that I didn't make the window wide enough to show all the output clearly. On an especially slow running utility, it can be frustrating to need to run everything all over again only to get better formatting. I could redirect the output to a program like less
, view
or gview
. However this just feels like too much work to do every time I run a utility that might not format well with the current window dimensions. Also, as far as I know less
doesn't support bash style text coloration.
Does anyone know of a Linux terminal emulator that has this behavior? It doesn't need to be out of the box behavior; I am willing to monkey with configuration settings to get something like this working. I have already poked around a number of terminal emulators on Linux to see if they support this, but I don't really have the time to try every single one of them. There are just too many! If truly no program exists that does this, is it because no one is trying to create this behavior? Is there some technical limitation on Linux in specific that does not allow this (don't see how this could be the case)?
less
does support colour with the-R
flag, but you probably need to tell the previous command in the pipe to send colour. (e.g.ls -l | less
fails, butls -l --color=always| less -R
works.) Finally, I know thatless
andvim
dynamically word wrap with changing window sizes, so perhaps something likescreen
ortmux
might do it.