<i>channel reads prematurely from stdin on Windows</i> status still Open with 3 other changes
by
.
D 2025-11-10T07:45:30.361
J icomment Use\sof\s\s`*WaitFor*`\sfunctions\sis\ssomething\sof\sa\sred\sherring.\sIt\sis\snot\sa\squestion\sof\sdetecting\savailability\sof\sdata,\sbut\srather\snot\sblocking\son\sthe\s`ReadConsole`\seither\sbecause\sthe\swait\sfired\sbecause\sof\sa\snon-character\sevent\s(e.g.\smouse)\sin\swhich\scase\s`ReadConsole`\swould\sstill\sblock,\sor\sbecause\ssome\sthread\sread\sthe\sdata\sin\sthe\smeanwhile.\r\n\r\nYour\scomment\simplies\syou\sare\susing\s8.6.\sI'm\safraid\sany\schanges\sto\sthe\sconsole\scode\sthere\sare\svery\sunlikely\sto\shappen\sfor\sa\snumber\sof\sreasons.\r\n\r\nAre\syou\swilling\sto\smove\sto\s9.0\s(which\shas\sa\scomplete\sconsole\srewrite\salbeit\swith\sthe\ssame\sread\sahead)?\sIf\sso,\sI\scan\sattempt\sa\sfix\sthough\sI\sam\sstill\sskeptical\sof\sintermixing\sTcl\schannels\swith\sraw\sread/fread\scalls.\r\n\r\nAlso,\sthanks\sfor\syour\ssample\sprogram.\sCan\syou\salso\slink\sme\sto\sthe\soriginal\scode\sfrom\swhich\sthe\ssample\sis\sderived\s(assuming\sit\sis\sopen\ssource)?
J login apnadkarni
J mimetype text/x-markdown
K 1d0618000674abdf701021d69eaa858cbccf14a4
U apnadkarni
Z 143cae9d9b5b19a380d669061714d985