<div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
cat file | mosh-sidechannel file-transfer<br>
&lt;waits until the other side has closed the connection or ctrl-c is hit&gt;<br>
<br>
which on the receiving side would execute a script that would either save the file locally or execute some X11 program to ask where the file is saved, etc.<br></blockquote><div><br>Also for the user interaction you probably want to support two cases<br>
<br>- Blocking operation: the action most complete before it is meaningful to continue the shell session. E.g. by the ctrl-c example above<br><br>- Non-blocking operation: signaling is initiazed, but mosh shell session won&#39;t wait until it completes: you can continue shell session without waiting the remote editor to open first<br>
<br>Please note that file tranfer can be also handled outside mosh, using e.g. SFTP, but this would limit the usefulness of side-channeling quite much.<br><br>-Mikko<br><br></div></div><br>-- <br>Mikko Ohtamaa<br><a href="http://opensourcehacker.com" target="_blank">http://opensourcehacker.com</a><br>
<a href="http://twitter.com/moo9000" target="_blank">http://twitter.com/moo9000</a><br><br>
</div>