Skip to content
Snippets Groups Projects
Commit 45c826ae authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Change the pause prompt to "More (Y/n) ?" and allow 'N' to stop.

parent cbdb2b49
No related branches found
No related tags found
No related merge requests found
......@@ -111,9 +111,10 @@ while(l>-1L) {
,fbacks,ulb/1024,uls,dlb/1024,dls);
lncntr++;
if(pause && lncntr>=20) {
printf("[Hit a key]");
printf("More (Y/n) ? ");
fflush(stdout);
if(getchar()==3)
char ch = getchar();
if(ch == CTRL_C || toupper(ch) == 'N')
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