On Fri, 27 Aug 2010 04:09:31 -0700 (PDT)
frou <m...@frou.org> wrote:

> Is it or would it be possible to add some basic text colouring to the
> standard REPL (the one started with the "clj" shell script).
> 
> It would be nice to be able to make the prompt, e.g. "user=>" coloured
> (green in my case) so that you get at-a-glance distinction between
> your inputs and the results printed.

The repl is missing a lot of things a modern command line should have
- history, line editing, autocompletion, etc.

The already mentioned rlwrap can provide all of those. However, most
of the writeups on the web just use it, without noticing that the
syntax can be adjusted, and defaults to C-like syntax. I generally
fixed that by using --quote-chars='"' and --complete-filenames (the
latter removes / and . from the default set of break characters, which
may be why I haven't seen problems with the prompt color).  The
other break chars just tweak autocompletion and word erase a little,
so I haven't really fooled with those.

   <mike

-- 
Mike Meyer <m...@mired.org>             http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to