Re: clojure.contrib.repl-ln available

2008-12-05 Thread Randall R Schulz
On Friday 05 December 2008 14:57, Randall R Schulz wrote: > Steve, > > On Friday 05 December 2008 14:45, Stephen C. Gilardi wrote: > > On Dec 3, 2008, at 11:39 AM, Randall R Schulz wrote: > > > Perhaps Steve would consider applying them to making his fancy > > > REPL more > > > robust for terminal

Re: clojure.contrib.repl-ln available

2008-12-05 Thread Randall R Schulz
Steve, On Friday 05 December 2008 14:45, Stephen C. Gilardi wrote: > On Dec 3, 2008, at 11:39 AM, Randall R Schulz wrote: > > Perhaps Steve would consider applying them to making his fancy REPL > > more > > robust for terminal users? > > I like the idea. If someone would like to work out the basi

Re: clojure.contrib.repl-ln available

2008-12-05 Thread Stephen C. Gilardi
On Dec 3, 2008, at 11:39 AM, Randall R Schulz wrote: > Perhaps Steve would consider applying them to making his fancy REPL > more > robust for terminal users? I like the idea. If someone would like to work out the basics and post some example code, I'll be happy to try to get it running in r

Re: clojure.contrib.repl-ln available

2008-12-03 Thread Randall R Schulz
On Wednesday 03 December 2008 11:26, Mark Volkmann wrote: > On Wed, Dec 3, 2008 at 11:25 AM, Randall R Schulz <[EMAIL PROTECTED]> wrote: > > On Wednesday 03 December 2008 09:10, Dakshinamurthy Karra wrote: > >> I am using jline with contrib.repl and it is working pretty well. > >> I use this comm

Re: clojure.contrib.repl-ln available

2008-12-03 Thread Stephen C. Gilardi
On Dec 3, 2008, at 1:12 PM, Meikel Brandmeyer wrote: > I tried to trace down, what happens before we enter the Repl. > The only points I noticed were setting the namespace to user > and setting the command-line-args. I wrote a simple main to > do this. Patch attached. To be started with clojure.c

Re: clojure.contrib.repl-ln available

2008-12-03 Thread Mark Volkmann
On Wed, Dec 3, 2008 at 11:25 AM, Randall R Schulz <[EMAIL PROTECTED]> wrote: > > On Wednesday 03 December 2008 09:10, Dakshinamurthy Karra wrote: >> I am using jline with contrib.repl and it is working pretty well. I >> use this command: > > I recently switched from JLine to rlwrap. I think the la

Re: clojure.contrib.repl-ln available

2008-12-03 Thread Meikel Brandmeyer
Hi, Am 03.12.2008 um 18:24 schrieb Stephen C. Gilardi: Would it make sense to add a :gen-class declaration and have the -main function automatically call the repl function? This would make launching the repl less painful for new-comers. It is a good idea and I'll work on it. What I do at the mo

Re: clojure.contrib.repl-ln available

2008-12-03 Thread Randall R Schulz
On Wednesday 03 December 2008 09:10, Dakshinamurthy Karra wrote: > I am using jline with contrib.repl and it is working pretty well. I > use this command: I recently switched from JLine to rlwrap. I think the latter is preferable, but I'm sure there are matters of taste involved. > ... > > --

Re: clojure.contrib.repl-ln available

2008-12-03 Thread Stephen C. Gilardi
On Dec 3, 2008, at 9:32 AM, Drew Olson wrote: > Would it make sense to add a :gen-class declaration and have the - > main function automatically call the repl function? This would make > launching the repl less painful for new-comers. > > - Drew It is a good idea and I'll work on it. What I d

Re: clojure.contrib.repl-ln available

2008-12-03 Thread Dakshinamurthy Karra
I am using jline with contrib.repl and it is working pretty well. I use this command: java -classpath .:./jline-0.9.93.jar:classes:clojure/clojure.jar:clojure-contrib/clojure-contrib.jar jline.ConsoleRunner clojure.main -e "(use 'clojure.contrib.repl-ln)" -e "(repl)" -- KD Dakshinamurthy Karra

Re: clojure.contrib.repl-ln available

2008-12-03 Thread Randall R Schulz
On Wednesday 03 December 2008 08:27, Dudley Flanders wrote: > On Dec 3, 2008, at 9:06 AM, Randall R Schulz wrote: > > Also, does anybody know how gain any degree or kind of control over > > signal handling in Java? Preferably pure Java, but since everything > > I do is on Linux, a native-code solu

Re: clojure.contrib.repl-ln available

2008-12-03 Thread Dudley Flanders
On Dec 3, 2008, at 9:06 AM, Randall R Schulz wrote: > > Also, does anybody know how gain any degree or kind of control over > signal handling in Java? Preferably pure Java, but since everything > I do > is on Linux, a native-code solution for that platform would be > acceptable. Not in a porta

Re: clojure.contrib.repl-ln available

2008-12-03 Thread Randall R Schulz
On Wednesday 03 December 2008 07:37, Stephen C. Gilardi wrote: > ... > > Fixed. Thanks for the detailed report! Detailed, eh? Anyway, that did it and I gotta' say, very cool. And so far it seems there's no adverse interaction with rlwrap. I've modified my Clojure launcher script to have an opt

Re: clojure.contrib.repl-ln available

2008-12-03 Thread Drew Olson
Would it make sense to add a :gen-class declaration and have the -main function automatically call the repl function? This would make launching the repl less painful for new-comers. - Drew On Wed, Dec 3, 2008 at 9:27 AM, Stephen C. Gilardi <[EMAIL PROTECTED]> wrote: > > I was just about to do tha

Re: clojure.contrib.repl-ln available

2008-12-03 Thread Stephen C. Gilardi
On Dec 3, 2008, at 10:06 AM, Randall R Schulz wrote: > Thanks. That looks pretty cool. Do I understand from your example that > if I just hit return I get another prompt? I've been meaning to ask > for > that. Thanks and yes, that's right. > I'm curious how it interacts with rlwrap in general

Re: clojure.contrib.repl-ln available

2008-12-03 Thread Randall R Schulz
On Wednesday 03 December 2008 06:27, Stephen C. Gilardi wrote: > I was just about to do that, Randall. :-) Yeah, I'm both nosey and impatient... > clojure.contrib.repl-ln is a repl that supports lines and line > numbers. Here's a session that demonstrates it. Thanks. That looks pretty cool. Do

Re: clojure.contrib.repl-ln available

2008-12-03 Thread J. McConnell
This looks awesome, great work Stephen! On Wed, Dec 3, 2008 at 9:27 AM, Stephen C. Gilardi <[EMAIL PROTECTED]> wrote: > > I was just about to do that, Randall. :-) > > clojure.contrib.repl-ln is a repl that supports lines and line > numbers. Here's a session that demonstrates it. > > --Steve > >

clojure.contrib.repl-ln available

2008-12-03 Thread Stephen C. Gilardi
I was just about to do that, Randall. :-) clojure.contrib.repl-ln is a repl that supports lines and line numbers. Here's a session that demonstrates it. --Steve % java -cp clojure.jar:clojure-contrib.jar clojure.main -e "(use 'clojure.contrib.repl-ln)" -e "(repl)" 1:1 user=> ; clojure.contr