Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TCL Gets command

Status
Not open for further replies.

MONBOY

Technical User
Nov 25, 2000
1
US
Can anyone tell me how to solve the following problem:

gets stdin name
-1

this returns the -1 before the user is given a chance to enter any input

Thank you!!!!
 
If you are running from a tcl console (e.g. tkcon), this
is true, because it have captured your "stdin".

In general, you can have the input channel blocking, buffering, &c, controlled by the command fconfigure. This "-1" means the channel stdin is not blocking and have no input available yet.
 
rpragana,
can you tell me how to solve the above problem...and can you tell me more about this stdin. Because I have a different problem. The tool which uses tcl console freezes as soon as I try to execute [gets stdin] command after flushing as well
anyways
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top