On Wed, 2004-09-22 at 16:44, jamesr wrote:
> Greeting VPython Users! A wonderfully rich-in-possiblities project. I
> do (of course) have a question:
>
> The default output/debug window currently takes any print statements
> and sends them to an external window. Now I may have missed how to
> turn that off - but my major goal is to redirect that information to
> my textual interface which is a CURSES-managed window. On windows
> (where i am forced to work, for now), the curses window is yet again
> seperate from the debug and 3d windows. Can any of the developers
> and/or users point me out to how to redirect that text "somewhere
> else".
>
> It could be cool!
>
> thanks, and a first time poster,
> James Robey, Maryland.
# (where my_output is a some opened file or object that looks like a
file)
import sys
sys.stdout = my_output
sys.stderr = my_output
HTH,
-Jonathan
|