[Openmcl-devel] remote repl
alms at clozure.com
Wed Mar 11 20:43:19 UTC 2009
On Mar 11, 2009, at 4:40 PM, Chris Dean wrote:
> I'm new to Clozure and trying to port some code to it. I would like
> write my own repl that a user can telnet into for debugging purposes.
> I think I can handle all the socket bookkeeping, but I was wondering
> there is an existing repl function I can hook into? I could of course
> right my own (or use swank), but I'm looking for something that
> exists and handles the debugger properly.
> Thanks! I have some sample code below to give an idea of what I'm
> We're using Version 1.3-RC1-r11804M (DarwinX8632).
> Chris Dean
> (defun run-listener (stream id)
> "Run a top-level listener"
> (let ((*terminal-io* stream)
> ;; ...
> (*standard-output* stream)
> (*standard-input* stream))
> (format t "~&Welcome to ~a ~a~%"
> (format t "This is remote read-eval-print loop ~d, " id)
> (format *terminal-io* "~&End of top level listener ~d, " id)
> (format *terminal-io* "closing stream, ending process.~%")
> (close stream)))
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
More information about the Openmcl-devel