Heres my situation. I am writing a program that is a console text program but is more interface driven, clearing the screen after something happends as opposed to letting it scroll. I have some text fields where the user should only be able to enter thirty characters. After those thirty characters I dont want anymore showing up and drawing all over the interface I constructed. I have spent a few hours on this using all manner of loops and toying with getch, getche, and getchar - all to no avail.
I also need to do something when the user hits ESC. Ive been checking chars for 27, but all the if statements Ive tried never seem to catch it.
Im on Windows XP Home using Dev-C++ 220.127.116.11
Any suggestions would be greatly appreciated. Thanks for your time.