In Ubuntu, I want to scroll up while a command is running in my terminal window and generates new output (the command that is running is rspec
).
I can scroll up, but each time rspec generates a new line of console output, it throws me back down to the bottom.
Is there a way to scroll all the way up?
I'm using terminator on Linux Mint/Ubuntu 12.04 LTS.
I found a possible workaround. Terminator homepage says that with
stty ixon
you can turn on "XON/XOFF flow control for terminal output. Being able to pause output by typing ^S and resume it by typing ^Q [...]"
This it not totally what I wanted though, without having to pause the output (and maybe wondering when forgetting to turn it on again), I thought there might be a simple modifier key like shft-alt with mouse wheel scroll-up. Are there better solutions?
xfce4-terminal
has an option called Scroll on output that you can uncheck and does just what you asked.tail -f file.txt
to see it as it is generated. That would leave your 1st terminal free to scroll back and still let you watch the output in realtime. Not elegant I know.