This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Redirection


>>>>> "Colin" == Colin Fox <colinf@rogers.wave.ca> writes:

    Colin> Can anyone point me at some documentation on how to do
    Colin> this? Or is it possible? (I don't want ALL of my stdout
    Colin> captured and redirected, just guile's).

 Well, I think you'll need either an editor buffer, or a history list.
 A history list would be simple enough, I guess.  Conceptually, it's
 just:

 (print (eval (read)))
   ... becomes:
 (print (push (eval (read)) history))

 ... for a very simple editor buffer, you can find one in `publib',
 which you can find via http://www.debian.org, by following the
 "Packages" link and searching there.  Get the source.