[CM] Snd: getting a prompt on stdout
Kjetil Matheussen
k.s.matheussen at gmail.com
Fri Mar 18 06:34:08 PDT 2016
I think it would be a good idea to add "s7webserver", which is found in s7,
to snd.
(or something similar) Using s7webserver, you have two programs, snd and,
s7repl.
These two programs communicate via web sockets.
It has the following advantages when using a(n) snd repl:
* You don't have to start snd inside emacs, and you don't have to restart
the repl
when you restart snd. You can start and stop the repl at any time, and
you can start
and stop snd at any time.
* Simple to set prompt
* You can control snd from another machine or from a web browser. In the
s7webserver directory
there is also a javascript program (in addition to the repl program),
which is started by
loading "s7webserver_repl.html" in a web browser, and then you have a(n)
snd repl
in a web browser.
Radium has used s7webserver for a long time like this, so it should be
stable.
I just made a couple of quick changes to snd to support this:
http://folk.uio.no/~ksvalast/xen.c.diff
http://folk.uio.no/ksvalast/makefile.diff
Recipe (untested):
cd snd
./configure
wget http://folk.uio.no/~ksvalast/xen.c.diff
wget http://folk.uio.no/ksvalast/makefile.diff
patch -p1 <xen.c.diff
patch -p1 <makefile.diff
cp -a ../s7/s7webserver .
cd s7webserver
<Remove "-DWITH_MAIN" from Makefile>
make
cd ..
make -j8
On Fri, Mar 18, 2016 at 2:11 PM, <bil at ccrma.stanford.edu> wrote:
> I added stdin-prompt to Snd, and tried it out briefly in the gtk version:
>
> /home/bil/cl/ ./snd
> (+ 1 2)
> 3
> (set! (stdin-prompt) ">>>")
> ">>>"
>
>> (+ 1 2)
>>>>
>>> 3
>
>> (exit)
>>>>
>>>
> I haven't yet tried it in emacs -- please let me know
> of any problems.
>
>
> (The sourceforge cvs version may be messed up --
> I'm getting "transport endpoint" errors which I'll
> need to track down).
>
>
> _______________________________________________
> Cmdist mailing list
> Cmdist at ccrma.stanford.edu
> https://cm-mail.stanford.edu/mailman/listinfo/cmdist
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cm-mail.stanford.edu/mailman/private/cmdist/attachments/20160318/94c05faf/attachment.html>
More information about the Cmdist
mailing list