fconfigure stdin -buffering none doesn't work
Closed / Invalid977764ffffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-06-22 20:22:41
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.
dkfplain2004-06-23 15:27:13
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.
Log in (anonymous is fine) to add a comment.