Reading stdin on the fly

1 · Erica Sadun · Dec. 31, 2019, 5:17 p.m.
Summary
Shai Mishali asks, “Is there something like readLine that lets me read stdin as the user types instead of waiting for an entire line?” The readLine function waits until the user presses enter or otherwise recognizes EOF to process input. A little web search led me to this SO post, which is  based on this example, using termios, […]...