There was this recent thread which might help:

http://lists.ironpython.com/pipermail/users-ironpython.com/2009-January/009606.html

You could alternately replace sys.displayhook and do a similar thing (we'll 
flow a CodeContext into there if you define the function in C#, you can get the 
Scope, and route it to the appropriate window).  The downside of displayhook is 
it will only printing expression statements - so if the user does print 'hi' 
then it won't work.

-----Original Message-----
From: users-boun...@lists.ironpython.com 
[mailto:users-boun...@lists.ironpython.com] On Behalf Of Kamil Dworakowski
Sent: Wednesday, February 18, 2009 7:49 AM
To: users@lists.ironpython.com
Subject: [IronPython] seperate output

Resolver One recalculations happen in a runtime, each recalc in a
seperate ScriptScope.

I am tinkering around adding an interactive shell (sth like python
interacitve interpreter) with access to the last recalc scope. This is
a window with two text boxes, one for input and out for output.
Ideally it would display only the output from the issued commands
there, and they shouldn't go to the 'output pane'. I am currently
using code.InteracitveShell inside the same runtime as the recalcs are
happening, and of course the command results go to the 'output pane'.
Any ideas on how to achieve that?
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to