# Don't really get the mechanics behind these. Just copy and apply for now.
There's nothing complicated there. It simple detaches a thread that does nothing but read lines (blocking) from STDIN, and when it gets one, echoes it to the write end of a socket pair. The read end of that socket pair is set non-blocking, so now it can be used in select loops in the normal way.
In reply to Re^5: Any event modules that support STDIN polling for Windows?
by BrowserUk
in thread Any event modules that support STDIN polling for Windows?
by KHLeow
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |