Hello everyone.
I am a fairly new user to Tcl, can somebody guide me out of the following
problem.
I have the following line in my code.
fileevent stdin readable [list read_stdin $srvr_sock]
read_stdin will then read from stdin and put the read string onto the
socket.
my problem is that the read_stdin procedure is being called even when
nothing has been typed on the keyboard. and a gets statement in the
procedure then blocks.
This is a problem for me as i would like to monitor input from the socket
and from the stdin simulataniously. ( i would like the read_stdin to only
be called when something has been typed at the keyboard.
A similar fileevent statement for reading from the socket works fine the
read_sock procedure is only called when data is available for reading on
the socket.
I have configured stdin and the socket with -blocking off and -buffering
line
Thanks in advance.
Naheed...........