Skip to content
This repository has been archived by the owner on Aug 19, 2021. It is now read-only.

Starting the REPL

bard edited this page Sep 13, 2010 · 9 revisions

Go to Firefox Tools menu and select MozLabStart MozRepl. MozRepl is now listening for connections on the default port 4242.

Open the command shell of your operating system and type:


    telnet localhost 4242

You’ll be presented with the prompt:


    repl>

You’re in!

Platform-specific notes

If you’re using Microsoft’s telnet for Windows, it’s probably set to handle one-character-at-a-time instead of one-line-at-a-time. See the Troubleshooting page, or just use netcat (recommended) or putty.

If you’re on Linux or some other Unix variant, you can use rlwrap to get command history and other niceties. Use arrow-up/down to retrieve previous commands and Control+R to search among them.


    $ rlwrap telnet 4242

If you’re using Emacs, see the Emacs integration page.