Skip to content
Snippets Groups Projects
Commit 2e0e0121 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 bf4be1e1
No related branches found
No related tags found
No related merge requests found
...@@ -111,9 +111,10 @@ while(l>-1L) { ...@@ -111,9 +111,10 @@ while(l>-1L) {
,fbacks,ulb/1024,uls,dlb/1024,dls); ,fbacks,ulb/1024,uls,dlb/1024,dls);
lncntr++; lncntr++;
if(pause && lncntr>=20) { if(pause && lncntr>=20) {
printf("[Hit a key]"); printf("More (Y/n) ? ");
fflush(stdout); fflush(stdout);
if(getchar()==3) char ch = getchar();
if(ch == CTRL_C || toupper(ch) == 'N')
break; break;
printf("\r"); printf("\r");
lncntr=0; } } lncntr=0; } }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment