[Ecls-list] Simple example demonstrating terminal io redirection problem

Greg Santucci thecodewitch at gmail.com
Tue Jul 14 04:28:52 UTC 2009


Hello all,

I'm still trying to get terminal io redirected through callbacks. I've
uploaded a small visual studio project consisting of a single source file 82
lines long to demonstrate the problem. It implements the simplest ECL repl,
and there is an accompanying lisp source file (called init.lisp) which
contains the lisp code to redirect the terminal io to the callbacks.

When I run it, I call (load "init.lisp") from the repl. At this point, the
callbacks should be used whenever terminal output occurs (such as trace
output). If you call (fact 10) the trace output does not go through the
callbacks. The callbacks can be called manually to demonstrate that they
have been registered with a call to (myflush) or (mywrite 65).

It is a 3.5Kb download, and it is downloadable here:
http://createuniverses.googlecode.com/files/ECLTest.zip

Thank you for your help.

Regards,
Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20090714/acefa543/attachment.html>


More information about the ecl-devel mailing list