Skip to content
Snippets Groups Projects
Commit 8417fbcc authored by rswindell's avatar rswindell
Browse files

Use getchar() instead of getch() to allow correct redirection of input for

Win32 build.
parent e4f0678d
No related branches found
No related tags found
No related merge requests found
......@@ -112,7 +112,8 @@ while(l>-1L) {
lncntr++;
if(pause && lncntr>=20) {
printf("[Hit a key]");
if(getch()==3)
fflush(stdout);
if(getchar()==3)
break;
printf("\r");
lncntr=0; } }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment