hi,
I'm trying to input single keys from the terminal on a linux system into Tcl. I have tried various arrangements of gets and read (specifiying I want 1 character etc) and setting the buffering to none (_output_ buffering I now realise!) but still have to press return at the end of the string to get tcl to read anything at all.
How can I get it to accept a single key press as input and continue without needing to press return?
Thanks,
Chris.
I'm trying to input single keys from the terminal on a linux system into Tcl. I have tried various arrangements of gets and read (specifiying I want 1 character etc) and setting the buffering to none (_output_ buffering I now realise!) but still have to press return at the end of the string to get tcl to read anything at all.
How can I get it to accept a single key press as input and continue without needing to press return?
Thanks,
Chris.