<div dir="ltr">I think it would be a good idea to add "s7webserver", which is found in s7, to snd.<div>(or something similar) Using s7webserver, you have two programs, snd and, s7repl.</div><div>These two programs communicate via web sockets.</div><div><br></div><div>It has the following advantages when using a(n) snd repl:</div><div>* You don't have to start snd inside emacs, and you don't have to restart the repl</div><div> when you restart snd. You can start and stop the repl at any time, and you can start</div><div> and stop snd at any time.</div><div>* Simple to set prompt</div><div>* You can control snd from another machine or from a web browser. In the s7webserver directory</div><div> there is also a javascript program (in addition to the repl program), which is started by</div><div> loading "s7webserver_repl.html" in a web browser, and then you have a(n) snd repl</div><div> in a web browser.</div><div><br></div><div>Radium has used s7webserver for a long time like this, so it should be stable.</div><div><br></div><div>I just made a couple of quick changes to snd to support this:</div><div><a href="http://folk.uio.no/~ksvalast/xen.c.diff">http://folk.uio.no/~ksvalast/xen.c.diff</a><br></div><div><a href="http://folk.uio.no/ksvalast/makefile.diff">http://folk.uio.no/ksvalast/makefile.diff</a><br></div><div><br></div><div>Recipe (untested):</div><div><br></div><div>cd snd</div><div>./configure</div><div>wget <a href="http://folk.uio.no/~ksvalast/xen.c.diff">http://folk.uio.no/~ksvalast/xen.c.diff</a></div><div>wget <a href="http://folk.uio.no/ksvalast/makefile.diff">http://folk.uio.no/ksvalast/makefile.diff</a></div><div>patch -p1 <xen.c.diff</div><div>patch -p1 <makefile.diff</div><div>cp -a ../s7/s7webserver .</div><div>cd s7webserver<br></div><div><Remove "-DWITH_MAIN" from Makefile></div><div>make</div><div>cd ..</div><div>make -j8</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 18, 2016 at 2:11 PM, <span dir="ltr"><<a href="mailto:bil@ccrma.stanford.edu" target="_blank">bil@ccrma.stanford.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I added stdin-prompt to Snd, and tried it out briefly in the gtk version:<br>
<br>
/home/bil/cl/ ./snd<br>
(+ 1 2)<br>
3<br>
(set! (stdin-prompt) ">>>")<br>
">>>"<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
(+ 1 2)<br>
</blockquote></blockquote></blockquote>
3<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
(exit)<br>
</blockquote></blockquote></blockquote>
<br>
I haven't yet tried it in emacs -- please let me know<br>
of any problems.<br>
<br>
<br>
(The sourceforge cvs version may be messed up --<br>
I'm getting "transport endpoint" errors which I'll<br>
need to track down).<div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
Cmdist mailing list<br>
<a href="mailto:Cmdist@ccrma.stanford.edu" target="_blank">Cmdist@ccrma.stanford.edu</a><br>
<a href="https://cm-mail.stanford.edu/mailman/listinfo/cmdist" rel="noreferrer" target="_blank">https://cm-mail.stanford.edu/mailman/listinfo/cmdist</a><br>
<br>
</div></div></blockquote></div><br></div>