On a local terminal, the stty -noflsh
option allows to discard buffered
output on Ctrl-C
and thus prevents from long scrolling delays if one did
accidentally output large amounts of text to the terminal.
How to achieve that on a ssh
session where the local terminal is in raw mode and
thus does not interpret Ctrl-C
as interrupt, while the remote pty
has already forwarded large quantities of text through the ssh network connection before the interrupt occurs ?
This problem (long scrolling delays even after pressing Ctrl-C
) occurs if the network speed is way higher than the scrolling
speed of the terminal, which seems to be true anytime as of today, and
the buffers in the network connection are large compared to that
scrolling speed, which also seems to be true anytime as of today.
cygwin
orlinux
(VT) as terminals, but I expect a solution, if any, to be independent of teminal type.