Re: easier exit

2011-03-03 Thread rogerdpack
> > Also is there any way to contribute patches to the clojure website > > itself? (maybe put it up on github too?) > > Instructions on the patch process are > athttp://dev.clojure.org/display/design/JIRA+workflow.  Issues waiting for > patches are > athttp://dev.clojure.org/jira/secure/IssueNa

Re: easier exit

2011-03-03 Thread rogerdpack
On Feb 25, 9:43 am, Stuart Halloway wrote: > > Hello all. A bit new to clojure here.  Anyway I found it a bit > > difficult to exit from a REPL. > > Would a patch to make it give instructions (like Python's > > > C:\>c:\installs\Python26\python.exe > exit > > Use exit() or Ctrl-Z plus Retur

Re: easier exit

2011-02-26 Thread .Bill Smith
Yeah, you're right. I was thinking of what happens when you fall off the end of main. -- 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 - plea

Re: easier exit

2011-02-25 Thread Ken Wesson
On Fri, Feb 25, 2011 at 10:04 PM, .Bill Smith wrote: > If you are running any non-daemon threads, even System.exit won't cause the > JVM to shut down. I'm pretty sure it will. Falling off the end of main won't and closing all GUI windows won't, but System/exit is supposed to kill the VM reliably.

Re: easier exit

2011-02-25 Thread Ken Wesson
On Fri, Feb 25, 2011 at 9:39 PM, Alan wrote: > On Feb 25, 6:21 pm, Ken Wesson wrote: >> On Fri, Feb 25, 2011 at 11:21 AM, Michael Wood wrote: >> > Would this help? >> >> > user=> (def exit "Use Ctrl-C to exit") >> > #'user/exit >> > user=> exit >> > "Use Ctrl-C to exit" >> > user=> >> >> Why sto

Re: easier exit

2011-02-25 Thread .Bill Smith
If you are running any non-daemon threads, even System.exit won't cause the JVM to shut down. Whereas as Michael Wood pointed out, there are various control sequences that do the trick reliably. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To po

Re: easier exit

2011-02-25 Thread Alan
On Feb 25, 6:21 pm, Ken Wesson wrote: > On Fri, Feb 25, 2011 at 11:21 AM, Michael Wood wrote: > > Would this help? > > > user=> (def exit "Use Ctrl-C to exit") > > #'user/exit > > user=> exit > > "Use Ctrl-C to exit" > > user=> > > Why stop there? > > (defn exit [] (System/exit 0)) But then the

Re: easier exit

2011-02-25 Thread Ken Wesson
On Fri, Feb 25, 2011 at 11:21 AM, Michael Wood wrote: > Would this help? > > user=> (def exit "Use Ctrl-C to exit") > #'user/exit > user=> exit > "Use Ctrl-C to exit" > user=> Why stop there? (defn exit [] (System/exit 0)) -- You received this message because you are subscribed to the Google G

Re: easier exit

2011-02-25 Thread Stuart Halloway
> Hello all. A bit new to clojure here. Anyway I found it a bit > difficult to exit from a REPL. > Would a patch to make it give instructions (like Python's > > C:\>c:\installs\Python26\python.exe exit > Use exit() or Ctrl-Z plus Return to exit > > ) > > like that have a chance to be

Re: easier exit

2011-02-25 Thread Michael Wood
On 25 February 2011 17:35, Armando Blancas wrote: > Using jline you can exit with ctrl-d. This is from the clojure web > site in Getting Started: > > The REPL has very rudimentary editing. For a better experience, try > running it via the JLine ConsoleRunner: > java -cp jline-0_9_5.jar:clojure.jar

Re: easier exit

2011-02-25 Thread Armando Blancas
Using jline you can exit with ctrl-d. This is from the clojure web site in Getting Started: The REPL has very rudimentary editing. For a better experience, try running it via the JLine ConsoleRunner: java -cp jline-0_9_5.jar:clojure.jar jline.ConsoleRunner clojure.main On Feb 24, 4:38 pm, rogerdp

easier exit

2011-02-24 Thread rogerdpack
Hello all. A bit new to clojure here. Anyway I found it a bit difficult to exit from a REPL. Would a patch to make it give instructions (like Python's C:\>c:\installs\Python26\python.exe >>> exit Use exit() or Ctrl-Z plus Return to exit >>> ) like that have a chance to be accepted? Also is the