Terminal Multiplexing
Use tmux to keep terminal sessions alive while you switch between apps and devices. The button to the left of the terminal title shows session thumbnails — tap to attach, long-tap for a context menu to kill sessions, detach other clients, or share the session via a universal link.
Sharing produces a secureshellfish.app URL that restores the session on any other device with Secure ShellFish installed, and includes instructions for attaching from a regular terminal too.
Enable mouse mode in your tmux config to swipe-scroll through scrollback. Enable tmux at the bottom of server configuration.
Use Handoff to pick up a tmux session on a different Apple device signed into the same iCloud account.
For everything tmux can do, see the tmux manual.