Re: Request for help Qt, C++ and guile REPL.

2013-06-20 Thread Thien-Thi Nguyen
() Eduardo Acuña () Thu, 20 Jun 2013 09:04:59 -0700 if the user types: (begin (display "hello")(sleep 2)) the result gets printed after the 2 seconds. What can i do to get the gui repl more like que standard guile repl? Did you try to set stdout to be unbuffered? -- Thien-Thi Ng

Re: Request for help Qt, C++ and guile REPL.

2013-06-20 Thread Noah Lavine
It seems to me that the right way to handle this is to evaluate the Scheme code in a different thread than the user interface, then have the interface continually pull from Scheme's output port. The other way to do it would be to notice if the Scheme code is a `begin' or similar form and execute t

Re: Request for help Qt, C++ and guile REPL.

2013-06-20 Thread Panicz Maciej Godek
Hi, one way would be to run the code in a separate thread. Perhaps it wouldn't be particularly elegant, but you could simply append "(call-with-new-thread (lambda()" "))" before calling eval. You'd need to reorganize your app, however, if you'd wish to display the expression's resulting object, be

Request for help Qt, C++ and guile REPL.

2013-06-20 Thread Eduardo Acuña
Hello! I have found the archives of this mailing list very helpful in the development of a piece of software i'm writing. And i have a few questions about the integration between guile, c++ and the library Qt. The program in question is a little gui repl, where the user can type guile code in a '