I am trying to exit a loop when the users presses 'q', Ctrl-C, or ESC. The 'q' and Ctrl-C work, but I am having some problems with ESC. There is probably something stupid I am missing, but I can't find it. Does anyone know why this is not working?
Thnx for any help.
--------------------------------------------------
menu_choice = getchar();
getchar();
while( (menu_choice != 'q') && (menu_choice != EOF) && (menu_choice != 27) )
{
etc,etc,etc.
}