[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] [Chicken-hackers] on ticket 1231

2016-01-23 Thread Peter Bex
On Fri, Jan 22, 2016 at 07:42:09PM +0100, Jörg F. Wittenberger wrote: > Hi all, > > there is a problem I have with ticket 1231. > http://bugs.call-cc.org/ticket/1231 > > In short: I'd love to see the patch applied. (Or learn about issues it > causes.) I hadn't forgotten about the patch, I just

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>