ttwait
int ttwait(int);
if (prompt[0] != '\0' && ttwait(2000)) {
ttwait(1000); /* wait for key or 1 second */
if (ttwait(300) == FALSE)