[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Scraping the REPL?

From: Matt Welland
Subject: Re: [Chicken-users] Scraping the REPL?
Date: Sat, 23 Jan 2016 08:55:07 -0700

On Jan 23, 2016 4:50 AM, "Matt Gushee" <address@hidden> 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 inside emacs: M-x shell <enter>. I'm pretty sure this works on windows also. Note that command history is accessed via alt-p, not up arrow.

> --
> Matt Gushee
> On Sat, Jan 23, 2016 at 4:29 AM, Hefferon, James S. <address@hidden> wrote:
>> 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 document (I am
>> writing in LaTeX).
>> Basically, I'd like to feed lines to the csi and then scrape the
>> entire REPL off screen, so I can collect it and include it in
>> the doc.
>> In the past I have done some scraping of this kind with a Python
>> script using an Expect module.  But it is a clunky process, with
>> problems of its own.
>> I see from the "Confirmed deviations" page that transcripts are
>> not implemented.  Before I launch what is really a kludge, can I
>> ask if I am missing some other option?  None of the eggs
>> seemed to me to do this but maybe I missed some obvious point.
>> Something that drops the entire interaction to a file would be ideal.
>> Thank you for any help.
>> Jim
>> _______________________________________________
>> Chicken-users mailing list
>> address@hidden
> _______________________________________________
> Chicken-users mailing list
> address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]