screen

keep running sessions despite logout

some tutorials

https://www.howtogeek.com/662422/how-to-use-linuxs-screen-command/

https://www.itzgeek.com/how-tos/linux/how-to-use-linux-screen-command.html

https://www.cloudbooklet.com/how-to-use-linux-screen-command/

https://unix.stackexchange.com/questions/40242/scroll-inside-screen-or-pause-output

~/.screenrc

i slightly modified - based on https://linuxize.com/post/how-to-use-linux-screen/

# Turn off the welcome message
# startup_message off
# Disable visual bell
vbell off
# Set scrollback buffer to 10000
defscrollback 10000
# Customize the status line
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%S][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %Y-%m-%d %{W}%c %{g}]'
# Enable mouse scrolling and scroll bar history scrolling
# Ctrl-A Esc (Ctrl-B / Ctrl-B / Up / Down)* .. Esc or Enter
termcapinfo xterm* ti@:te@