Linux terminal is a complicated beast. The state machine if full-fledged terminal is scary. That's why it needs to be decomposed into simple parts. Starting with most simple.
Story: Running mc in a fresh container
$ mc
The TERM environment variable is unset!
$ export TERM=dumb
$ mc
Your terminal lacks the ability to clear the screen or position the cursor.
This is Linux container, I connected to it using lxc exec c1 bash.
[ ] how lxc connects to container - which streams, how are they connected, where redirected?
[ ] what is terminal here?
[ ] how lxc provides terminal? or who provides it, and what is lxc role?
Linux terminal is a complicated beast. The state machine if full-fledged terminal is scary. That's why it needs to be decomposed into simple parts. Starting with most simple.
Story: Running
mc
in a fresh containerThis is Linux container, I connected to it using
lxc exec c1 bash
.lxc
connects to container - which streams, how are they connected, where redirected?lxc
provides terminal? or who provides it, and what islxc
role?