On 2010-01-12, at 5:10 PM, Mikael More wrote:
James,
I want a server that is for Gambit what SSH/Telnet is for the Unix shell: I want
(1) To be able to get a REPL that's not clogged with the debug output that goes to the gambit-global console (2) To be able to get several REPL:s where to perform work in separate, for instance made by two different persons
..And get history support in this (terminal niceties).
Here's my solution. You need these 2 files:
serve-gsi-repl.scm ; the code which registers a REPL server on port 9000
start-gsi-repl ; a shell script which starts a new REPL by contacting ; the server on port 9000
You'll have to start Gambit like this
gsi serve-gsi-repl.scm -
or just put (load "serve-gsi-repl.scm") in your .gambcini.scm file.
Then to start a new REPL, just execute the shell script. Note that you can do this remotely with ssh:
ssh foobar ./start-gsi-repl
Let me know if you encounter problems. Note: don't execute gsi under emacs otherwise the line-editing features will be disabled. Moreover, the shell script uses the "nc" utility program, so it has to be installed. I tested this on Mac OS X... it probably works on Linux, and probably not on Windows unless cygwin is installed.
Marc
Afficher les réponses par date