Hi there.
Back in the good old days of modems and BBSes, terminal programs
supported file transfer via in-band signalling.
Have you ever been logged into a system via ssh and thought "I wish I
could just quickly send a file to this system"?
maybe you use `cat file | xclip', then `cat > file' and paste with
your mouse button. Maybe you use "scp" from another window. But
"scp" takes ages, it has to re-authenticate, etc. And "scp" won't
work if you're more than one level of login shells deep.
To implement this is simple - allow the user to define external
programs that are run when key sequences are seen on input.
For instance, you might define the following sequence:
"**^XB00000000000000^MM-^J^Q"
to run "rz".
That's download. Upload is even simpler; you just need to direct
output from a user-defined command to the terminal. In the case of
Zmodem, "sz" issues "rz^M" first, which will send a file to that
place.
I think it would be useful. What do you think?
Sam.