I've started fiddling with C to improve my programming skills, and decided to try and implement a Tetris game. Nothing too fancy, it'll run on the console.
I never implemented a game that keeps running despite user input, and didn't figure out I'd have to deal with this problem until I started thinking about the game algorithm.
Googling for a solution I came up with a _kbhit() function, but I'm programming on a Linux box and that function is only available on Windows. How can I do it?