[Tutor] curses, key controls ?

Alan Gauld alan.gauld at blueyonder.co.uk
Wed Jan 21 03:32:34 EST 2004

> getchar() delays execution and waits for user input, 

Use getch() instead of getchar()

> I need a way to specify a certain key for termination.

Test the return value against the key you are looking for.

Alan G
Author of the Learn to Program web tutor

More information about the Tutor mailing list