Changed the require_getchar handling.