While I was running apt upgrade
I accidentally sent a Ctrl-S to that terminal window.
Now I know of XOFF
, XON
, Ctrl-Q, and something new about teletype.
When I sent a Ctrl-Q to the "paused" terminal, apt
continued with its work.
From reading about XOFF
, it is unclear to me what happened in apt
, or what happens generally in any command which receives an XOFF
. htop
stops updating the display, which is something good to know, but is htop
still running?
Was apt
still running? Or was apt
and htop
effectively paused, frozen?
Apparently the processes can still receive input, while XOFF
'd, so they are still executing.
What is happening? For example, the program counter, apparently it doesn't simply stop incrementing the program counter, freezing the program.
Does it depend on how the command is programmed to handle XOFF? Is there a general behavior that can be expected with the basic Linux commands?
Note that this and similar questions don't contain answers to my question since they don't mention what happens in the program itself. For example, I don't know if apt
did continue to run silently, or if it was frozen/paused.