Re: Getting REPL transcript

2009-10-02 Thread Thorsen Eric
Enclojure has repl history as well as a log of all the unique commands issued that persists across restarts of Netbeans (and your repl instances). The command history can be opened in the editor and the expressions can be executed just like any other clojure source file. Standard command

Re: Getting REPL transcript

2009-09-26 Thread Emeka
Thank you all. Chris Grand has figured it out for me. However, I invite you to look at it and comment. Regards, Emeka On Sat, Sep 26, 2009 at 12:15 PM, Daniel Werner daniel.d.wer...@googlemail.com wrote: On Sep 23, 6:20 pm, Emeka emekami...@gmail.com wrote: Hello All, I would like to

Re: Getting REPL transcript

2009-09-26 Thread Daniel Werner
On Sep 23, 6:20 pm, Emeka emekami...@gmail.com wrote: Hello All, I would like to have a transcript of Repl. Could someone help me out here? Regards, Emeka If you use rlwrap, you can give it the --log-file (-l) argument: $ rlwrap -l repl.log java -cp ...

Re: Getting REPL transcript

2009-09-26 Thread Emeka
Sorry, here is the link. http://gist.github.com/193550 On Sat, Sep 26, 2009 at 2:03 PM, Emeka emekami...@gmail.com wrote: Thank you all. Chris Grand has figured it out for me. However, I invite you to look at it and comment. Regards, Emeka On Sat, Sep 26, 2009 at 12:15 PM, Daniel

Re: Getting REPL transcript

2009-09-25 Thread John Newman
I'm still learning, myself, so I could be wrong, but you might be able to use clojure.contrib.server-socket and tweak it's binding for *in*, *out*, and *err*, like another PushbackInputStream for *in* and copy the lines to a file before sending it into the repl. Or use a pipe perhaps? -- John

Re: Getting REPL transcript

2009-09-25 Thread Emeka
Thanks I will look into that. But more information on 'pipe' please? So we have two Newman{Rich, John}, so I will say thanks to Newmen. Regards, Emeka On Fri, Sep 25, 2009 at 10:43 AM, John Newman john...@gmail.com wrote: I'm still learning, myself, so I could be wrong, but you might be able

Re: Getting REPL transcript

2009-09-25 Thread Stuart Sierra
On Sep 23, 1:09 pm, John Harrop jharrop...@gmail.com wrote: Actually, that suggests a more general point: that we can have programmatic access to the REPL's backlog if we modify the REPL process's Java code somewhat. The REPL is written in Clojure, so it's quite easy to modify. Look at

Re: Getting REPL transcript

2009-09-24 Thread Emeka
Hello John , A standalone REPL on Windows is amenable to making the command prompt window's backscroll big enough, if needed, and then copying from it using the prompt window's mark/copy mode. A standalone REPL on MS-DOS is tougher. The only way I know of short of installing Windows is to

Re: Getting REPL transcript

2009-09-24 Thread Richard Newman
Actually, that suggests a more general point: that we can have programmatic access to the REPL's backlog if we modify the REPL process's Java code somewhat. A simple example would be to make a repl.class that would provide an interactive stdin/stdout repl but log everything to a

Re: Getting REPL transcript

2009-09-24 Thread Emeka
Rich, Hmm, it is what I'm looking for.Just the way I planned it to be. The next issue now is on how to craft it into clojure. Regards, Emeka On Thu, Sep 24, 2009 at 7:59 AM, Richard Newman holyg...@gmail.com wrote: Actually, that suggests a more general point: that we can have

Re: Getting REPL transcript

2009-09-24 Thread Michael Wood
2009/9/23 Emeka emekami...@gmail.com: Mic, Or use script . I don't think I understood clearly what you are referring to. There's a UNIX command called script which records a command line session to a file (called typescript by default). mich...@egret:/tmp$ script Script started, file is

Re: Getting REPL transcript

2009-09-23 Thread Phil Hagelberg
Emeka emekami...@gmail.com writes: I would like to have a transcript of Repl. Could someone help me out here? Sure; run it in GNU Screen with logging turned on. $ screen -l $ rlwrap java -cp clojure.jar clojure.main = (do some stuff) It will get written to screenlog.0. -Phil

Re: Getting REPL transcript

2009-09-23 Thread Michael Wood
2009/9/23 Phil Hagelberg p...@hagelb.org: Emeka emekami...@gmail.com writes: I would like to have a transcript of Repl. Could someone help me out here? Sure; run it in GNU Screen with logging turned on.  $ screen -l  $ rlwrap java -cp clojure.jar clojure.main  = (do some stuff) It

Re: Getting REPL transcript

2009-09-23 Thread Emeka
Mic, Or use script . I don't think I understood clearly what you are referring to. Regards, Emeka On Wed, Sep 23, 2009 at 4:40 PM, Michael Wood esiot...@gmail.com wrote: 2009/9/23 Phil Hagelberg p...@hagelb.org: Emeka emekami...@gmail.com writes: I would like to have a transcript of

Re: Getting REPL transcript

2009-09-23 Thread Fogus
If you're running it with JLine, then the transcript is usually stored in ~/.jline-clojure.lang.Repl.history --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: Getting REPL transcript

2009-09-23 Thread John Harrop
On Wed, Sep 23, 2009 at 1:05 PM, Fogus mefo...@gmail.com wrote: If you're running it with JLine, then the transcript is usually stored in ~/.jline-clojure.lang.Repl.history Actually, that suggests a more general point: that we can have programmatic access to the REPL's backlog if we modify

Re: Getting REPL transcript

2009-09-23 Thread songoku
Vimclojure and emacs (on any operating system) will have at least the ability to copy from the REPL's history and paste elsewhere in the editor, but maybe not any nice way to export it to something else, like the mail client used to post to this list. With emacs you can simply safe the buffer