Hello,
I have a problem:
In my C program, I'm using the "select" function, that tells me if I got data on a certain socket or got data from stdin (using file descriptors set).
When ever I recieve an indication from the "select" function that the stdin in "on" (someone entered seomething), I read it from stdin.
If I'll use the Tcl/Tk GUI with a text widget, I'll loose the ability to know if the key was pressed (it's a chat program - so I have to get the string the user entered...)
How can I use the text widget so that whenever it receives an input, the Tcl/Tk GUI will notify the "select" function ?
I'm open to any suggestion..
Thank you.
Yaron
I have a problem:
In my C program, I'm using the "select" function, that tells me if I got data on a certain socket or got data from stdin (using file descriptors set).
When ever I recieve an indication from the "select" function that the stdin in "on" (someone entered seomething), I read it from stdin.
If I'll use the Tcl/Tk GUI with a text widget, I'll loose the ability to know if the key was pressed (it's a chat program - so I have to get the string the user entered...)
How can I use the text widget so that whenever it receives an input, the Tcl/Tk GUI will notify the "select" function ?
I'm open to any suggestion..
Thank you.
Yaron