When piping command output into less, I'll scroll to the bottom of the output using the mouse and I'll find less gets stuck in forward scrolling, preventing me from scrolling back through output. This is the same behaviour as pressing F. Is there a way to unlock less from forward scroll?
Reproduce: docker-compose up | less
followed by pressing F.
( trap '' INT && somecommand ) | less
, i.e. ignore the INT signal in the sub-shell running the command. – Kusalananda Jan 01 '17 at 21:21Ctrl+C
actually does; it sends anINT
signal to the foreground process. Do you think it would be better to write "process group"? But that means the examplekill
command would be slightly misleading instead. What I wanted to say in the section is simply thatCtrl+C
sends anINT
signal, to establish a relation between "interrupt" and "Ctrl+C". – Kusalananda Sep 30 '22 at 06:01INT
. I think "process group" would be better although most people probably do not know that terminology. "[by default] all processes in the pipeline receive theINT
" signal may work better. – Alexis Wilke Sep 30 '22 at 16:05