<div>Hi all,</div>
<div> </div>
<div>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 &lt;enter&gt;, I use, <font size="2">
<p>_engine.CreateScriptSourceFromString(code, </p></font><font color="#2b91af" size="2"><font color="#2b91af" size="2">SourceCodeKind</font></font><font size="2">.InteractiveCode).Execute(_globalScope);</font>
<p><font size="2">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., &quot;a = raw_input(&quot;Enter a value: &quot;)&quot;, 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 &lt;enter&gt;. Can someone show me how to accomplish this?</font></p>

<p><font size="2">Thanks,<br>Aravin</font><font size="2"></font></p></div>