Hacker News new | ask | show | jobs
by mukel 1969 days ago
It's a Linux-only trick: https://github.com/kt97679/tetris/blob/52dfb3a703e4dd5b37990...
1 comments

Ok what on earth is going on there... It's launching a shell but I'm not sure what the stty does
The commandline buffers input by default, because it starts in "cooked" mode.

That line turns off buffering so that keypresses can immediately be read, by putting it into "raw" mode.

excellent! thank you