I just learned about screen and it looks wonderful.
Some questions:
- How do they actually work?
- Why are downloads / process not interrupted in screens even though something bad happened?
Very briefly (it's possible to write several pages on the topic): screen works by
Once a client (window) is created, it is isolated from the other clients. It communicates via the pseudo-terminal connection to the server process, which updates the terminal. The server keeps track of what should be shown on the terminal in a given window, providing you with the ability to switch between windows. The clients run without knowing if screen is currently displaying their information.
echo $TERMin a screen session printsscreenas opposed toxtermin ordinary bash sessions.