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 his
2009/9/26 Emeka :
> Sorry, here is the link.
> http://gist.github.com/193550
Looks interesting, but I would change login and logout to log-input
and log-output to avoid confusion.
> On Sat, Sep 26, 2009 at 2:03 PM, Emeka wrote:
>>
>> Thank you all. Chris Grand has figured it out for me. However
Sorry, here is the link.
http://gist.github.com/193550
On Sat, Sep 26, 2009 at 2:03 PM, Emeka 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 Werner <
> daniel.
On Sep 23, 6:20 pm, Emeka 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 ...
--~--~-~--~~~---~--~--
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 wrote:
> > Hello All,
> >
> > I would like to have a trans
On Sep 23, 1:09 pm, John Harrop 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
src/clj/clojure/main.cl
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 wrote:
> I'm still learning, myself, so I could be wrong, but you might be able to
> use clojure.c
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
-
2009/9/23 Emeka :
> 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 typescript
mich...
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 wrote:
>
> > Actually, that suggests a more general point: that we can have
> > programmatic access to
> 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
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 t
> 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 buf
On Wed, Sep 23, 2009 at 1:05 PM, Fogus 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 the REPL process's
On Wed, Sep 23, 2009 at 12:40 PM, Michael Wood wrote:
> 2009/9/23 Phil Hagelberg :
> >
> > Emeka 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 cl
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 cloju
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 wrote:
>
> 2009/9/23 Phil Hagelberg :
> >
> > Emeka writes:
> >
> >> I would like to have a transcript of Repl. Could someone help me out
> here?
>
2009/9/23 Phil Hagelberg :
>
> Emeka 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 scree
Emeka 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
--~--~-~--~~---
Hello All,
I would like to have a transcript of Repl. Could someone help me out here?
Regards,
Emeka
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googl
20 matches
Mail list logo