Commit 45c826ae authored by Rob Swindell's avatar Rob Swindell

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

parent cbdb2b49
Pipeline #186 passed with stage
in 17 minutes and 39 seconds
......@@ -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; } }
......
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