Terminal/Shell integration – a proposed protocol
While we&#x27;re at it could we please bring back file upload&#x2F;download support, like terminals used to support 20 years ago. The lrzsz ZMODEM implementation actually still compiles on modern systems despite not having been touched for 20 years, and in any event server-side packages are readily available. I got it working with iterm2 (one of the few, if not only, terminals on macOS that let you hook escape sequences), but this is really something that should be built into terminals.<p>Once upon a time you could easily push print jobs through the terminal, too. Unfortunately the terminals didn&#x27;t prompt the user before spooling the job locally, so you could send print jobs to logged in users using the write(1) and wall(1). Good times....<p>Which, come to think of it, is probably an attack vector people should keep in mind when drafting and implementing these protocols. Who here hasn&#x27;t accidentally cat&#x27;d a file downloaded from the internet even though you hadn&#x27;t yet resolved to trust it yet? Perhaps you were cat&#x27;ing it to vet it, but forgot to pipe it to od(1) or hexdump(1).