Hi I need to do a text menu for my program. I know that I could just use printf, fgets and sscanf but there are a few problems.
Say if I want 1 digit from the user to use as their choice in the menu I can do it but the user can type as much as he wants untill he presses enter. Everything but the first digit is ignored but I still think its unprofesional. I would like the program to instantly take the number he pressed right away, withought having to press enter first.
Also I would like to be able to display things as the user is typing things sometimes.
Anyone have an idea? Thanks