> In my code, i used Tcl_SetStdChannel(0, STDIN) and a thread to control
> all input and output from Tcl, but i want to use some of Tcl' Commands,
> such as, exit.
> I used Tcl_Eval() then, but the Tcl command seem invisible in my code,
> I typed a string in command prompt, such as "AAAAA", and Enter, got
> nothing feedback.
Your questions are hard to understand, but they suggest that you
believe that setting a custom stdin channel will do some magic to
establsh a prompt/read/eval loop. That is not the case.
> How can i do to get these Tcl Commands work?
Start with something that works, like the source code for tclsh,
and adapt to your needs.
Or post a followup and include more code examples to explain
what you're doing and how it doesn't do what you expect.
| Don Porter Mathematical and Computational Sciences Division |
| firstname.lastname@example.org Information Technology Laboratory |
| http://math.nist.gov/~DPorter/ NIST |