How to check if stdin is readable in TCL?
12:18 05 Jan 2012

With the following command you can register some callback for stdin:

fileevent stdin readable thatCallback

This means that during the execution of the update command it will evaluate thatCallback time after time while there is input available at stdin.

How can I check if input is available at stdin ?

tcl stdin gets