by godelski · 2mo ago · 0 comments
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 regularlyBut 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.