Commit 9d1f0965 authored by rswindell's avatar rswindell
Browse files

Flushes stdout (for Unix) on hit a key prompt.

parent 01221833
......@@ -12,6 +12,7 @@
static void getkey(void)
{
printf("Hit any key...");
fflush(stdout);
while(getch()==0);
printf("\r%20s\r","");
}
......@@ -39,7 +40,7 @@ int main()
printf("getch() returned %d\n",ch);
} while(ch!=ESC);
#if 0
#if 1
/* BEEP test */
printf("\nBEEP() test\n");
getkey();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment