Re: In Tcl and C++ code, how to use Tcl Command, such as exit?
- From: Don Porter <dgp@xxxxxxxxxxxxxx>
- Date: 20 Aug 2006 18:17:32 GMT
vian1381@xxxxxxxxxxxx wrote:
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 |
| donald.porter@xxxxxxxx Information Technology Laboratory |
| http://math.nist.gov/~DPorter/ NIST |
|______________________________________________________________________|
.
- Prev by Date: Re: apply a math function to alist of numbers
- Next by Date: Geometry managers...
- Previous by thread: apply a math function to alist of numbers
- Next by thread: Geometry managers...
- Index(es):
Relevant Pages
|
|