Hi all,

In my application, I have a shell like control for users to interact with
tan embedded python engine. When the user enters some command and presses
<enter>, I use,

_engine.CreateScriptSourceFromString(code, SourceCodeKind
.InteractiveCode).Execute(_globalScope);

to execute the command. I have redirected the output so that any output
would be shown in my shell control. I would like to know how to redirect
input so that when a command contains, for e.g., "a = raw_input("Enter a
value: ")", I can prompt users to enter the value in my shell itself. I also
need to pause the execution till the users enter some value and press
<enter>. Can someone show me how to accomplish this?

Thanks,
Aravin
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to