Of course, it is a pity Microsoft doesn't open source it. But there are some well-maintained open source alternatives, e.g. https://github.com/jeanp413/open-remote-ssh and https://github.com/F1yingWhite/fast-remote-ssh (I haven't got around to giving either of them a go–but I really should.)
Also, timeouts...
Also, does anyone know if VSCode supports mosh?
if [[ $TERM_PROGRAM = vscode && -f /etc/motd ]]; then
cat /etc/motd
fi
Assuming your users use the integrated terminal regularly cat /etc/motd >&2
please >>> Assuming your users use the integrated terminal regularly
People don't use the integrated terminal regularly $ echo $TERM
xterm-256color
$ echo $TERM_PROGRAM
vscodeBut so is the question. MOSH interprets all the escape sequences and uses them to decide what to send to the client. That way if you tail a log file and then get disconnected, you don’t have to download every line of text that was output to your terminal while you were away; it can just send you what is currently visible.
MOSH is strictly for interactive use; never ever for automated uses like TRAMP or VSCode or sshfs.