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 typescript
mich...@egret:/tmp$ clojure
Clojure 1.1.0-alpha-SNAPSHOT
user=> (defn hello [] (println "Hello, World!"))
#'user/hello
user=> (hello)
Hello, World!
nil
user=>
mich...@egret:/tmp$ exit
Script done, file is typescript

Although if you use rlwrap to give you history and line editing then
script will record all the terminal escape codes etc. to the
typescript file too.  So it's not perfect.

-- 
Michael Wood <esiot...@gmail.com>

--~--~---------~--~----~------------~-------~--~----~
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