Re: [Chicken-users] Scraping the REPL?

2016-03-02 Thread Herr
On 23.01.2016 23:39, Matt Gushee wrote: > Hi, James-- > > On Sat, Jan 23, 2016 at 10:51 AM, Hefferon, James S. > wrote: > > > Thank you for the "script" suggestion. I apologize but I don't understand it. > > > ​I see the problem. I had

Re: [Chicken-users] Scraping the REPL?

2016-01-24 Thread Hefferon, James S.
Thank you, Dan for the warning. Matt, about script: that sounds like it might be perfect for me. I do use Linux, as it is good for LaTeX. Sorry for my confusion; I'll check it out. Regards, Jim -- "Does not the Captain seek your advice, sir?" "Not

Re: [Chicken-users] Scraping the REPL?

2016-01-24 Thread Dan Leslie
Word of warning: Babel seems to be hard-coded for Guile only; there are several open bugs regarding Babel and Geiser regarding, for instance, it breaking with Chicken. -Dan Alex Charlton writes: > Hi James, > > The best thing that I've found for creating "living"

[Chicken-users] Scraping the REPL?

2016-01-23 Thread Hefferon, James S.
I am writing a document that will include figures showing interactions with the Chicken interpreter. In past documents of this kind, by-hand cutting and pasting has led me to have such illustrations be inaccurate. So I would like those to be produced as part of the process of compiling the

Re: [Chicken-users] Scraping the REPL?

2016-01-23 Thread Matt Gushee
What OS are you using? If you are on Linux, you can use the 'script' command. You will have to edit the output a bit, but it does the job. -- Matt Gushee On Sat, Jan 23, 2016 at 4:29 AM, Hefferon, James S. wrote: > > I am writing a document that will include figures

Re: [Chicken-users] Scraping the REPL?

2016-01-23 Thread Hefferon, James S.
Thank you for the "script" suggestion. I apologize but I don't understand it. I'm looking for a way to automatically capture an interactive session, and drop it to a file, without cutting and pasting from a terminal or an editor. When I use LaTeX to compile the book, I'd like that as

Re: [Chicken-users] Scraping the REPL?

2016-01-23 Thread Matt Welland
On Jan 23, 2016 4:50 AM, "Matt Gushee" wrote: > > What OS are you using? If you are on Linux, you can use the 'script' command. You will have to edit the output a bit, but it does the job. +1 on using script. A good alternative if you are an (x)emacs user is to use a shell

Re: [Chicken-users] Scraping the REPL?

2016-01-23 Thread Alex Charlton
Hi James, The best thing that I've found for creating "living" documents is Org-mode's Babel . It allows you to write code in a document which is executed when the document is compiled, with the source and/or the results getting inserted into the

Re: [Chicken-users] Scraping the REPL?

2016-01-23 Thread Hefferon, James S.
Alex, Thank you. I have never heard of it, and I shall look into it. Jim ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] Scraping the REPL?

2016-01-23 Thread Matt Gushee
Hi, James-- On Sat, Jan 23, 2016 at 10:51 AM, Hefferon, James S. wrote: > > Thank you for the "script" suggestion. I apologize but I don't understand > it. > ​I see the problem. I had forgotten that csi has a -script option. I meant something entirely different - the

Re: [Chicken-users] Scraping the REPL?

2016-01-23 Thread Matt Welland
Unless you need it's ability to capture all input you might be able to get away without using script and just use simple scripting: matt@xena:/mfs/matt/nodemcu/esptool$ (csi -q<< EOF (define (f x)(+ x 123)) (f 8) EOF ) > example1.txt matt@xena:/mfs/matt/nodemcu/esptool$ cat example1.txt csi>