It does not seem possible to fconfigure stdin to have
no bufferring on (at least) Windows 2000. After some
investigation, it appears that the fconfigure command
only really manages the buffering modes on the
filehandles that tcl has created, but not on standard
filehandles that were created outside of tcl by the OS.
Ideally, it seems that tcl should recognize the
standard filehandles and set their buffering modes
explicitly. Failing that, the documentation should be
updated to make clear that some of the fconfigure
options will not work on the standard filehandles.
Logged In: YES
user_id=79902
It works on stdin, but it is not useful as the -buffering
option is for *output* buffering only. Input buffering of
stdin is done inside the OS console code, and is known as
"cooking".
TIP#160 proposes fixing this.