I want to code a Snake console game but I don't know how to get real time key input. I don't want to press return every time I want my snake to change it's direction. Please let me know if there is a way to do this with Linux.
I've tried getting input every time my snake moves but I have to press return to end my line. I don't want to do that every time I want my snake to change it's direction.