Closed srcrip closed 2 years ago
I believe the reason is the termios stuff (setting non blocking io). I'm not quite sure how you'd work around that though.
I believe the reason is the termios stuff (setting non blocking io). I'm not quite sure how you'd work around that though.
That's correct; probably the best is to implement your own readLine()
equivalent using getKey()
.
I figured the following should work:
I'd just like to read from stdin as a stream, but the moment
illwillInit
gets called it ends up setting something on the terminal thats messing with stdinput I think.