22 ms·
Neither fget*() or read() from stdin would work because stdin is buffered. It's possible to change the mode, but it would require calling the terminal control
by jlarocco 13y ago
Neither fget*() or read() from stdin would work because stdin is buffered.
It's possible to change the mode, but it would require calling the terminal control functions, and that'd requiring calling out to C anyway, so might as well use ncurses.
- zaphar 13y agoNope, you don't have to touch C at all. The syscall package has all you need. But it's still a lot of lowlevel coding. Ncurses is probably easier.