In a (gnome) terminal, if I cat
a file which turns out to be much too long, I can always press Ctrl-c to interrupt.
However, in tmux
, when the same happens, it takes long for the signal produced by the Ctrl-c keypress to reach the server, and until that happens, the server is busy with this output, and I'm unable to do anything but watching the flood (or using a different terminal).
This is somewhat similar to the problem described here.
I do not wish to restart the terminal, the server, or even the specific tmux
window/pane; using less
is a smart habit, but I'm asking here about how to solve problems that already occured, not how to be smart and avoiding them by thinking before acting... there will always be surprises!
So, is there a way to let the terminal stop the floods, discard the sent data, etc.? Anything I can do to release myself from these annoying minutes of watching characters on my screen?
head
ortail
to get just enough of output. – MatthewRock Sep 07 '15 at 14:36