[Openmcl-devel] remote repl
terje at in-progress.com
Wed Mar 11 20:05:20 EDT 2009
On Mar 11, 2009, at 1:43 PM, Andrew Shalit wrote:
Building a Telnet REPL on top of a swank client is very feasible, and
a good choice if you want to customize it or make it portable to
other Lisp environments. I have a CLOS extension to Madhu's swank
client module that you could use.
-- Terje Norderhaug
> 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
>> 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
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
More information about the Openmcl-devel