Skip to content
Snippets Groups Projects
Commit 63f7dd8d authored by rswindell's avatar rswindell
Browse files

Replace the hard-coded beep/BEL characters in the "Hit any key to continue..."

prompts with the conditional beep enabled only with the '-b' option
(silent by default). Thanks to Nelgin.
parent e7bbab52
No related branches found
No related tags found
No related merge requests found
...@@ -191,7 +191,7 @@ int main(int argc, char **argv) ...@@ -191,7 +191,7 @@ int main(int argc, char **argv)
if(stop_on_error && errors) if(stop_on_error && errors)
break; break;
if(pause_on_error && errlast!=errors) { if(pause_on_error && errlast!=errors) {
fprintf(stderr,"\7\nHit any key to continue..."); fprintf(stderr,"%s\nHit any key to continue...", beep);
if(!getch()) if(!getch())
getch(); getch();
printf("\n"); printf("\n");
...@@ -1088,7 +1088,7 @@ int main(int argc, char **argv) ...@@ -1088,7 +1088,7 @@ int main(int argc, char **argv)
,totaldelmsgs,ultoac(packable,str)); ,totaldelmsgs,ultoac(packable,str));
if(pause_on_error && errlast!=errors) { if(pause_on_error && errlast!=errors) {
fprintf(stderr,"\7\nHit any key to continue..."); fprintf(stderr,"%s\nHit any key to continue...", beep);
if(!getch()) if(!getch())
getch(); getch();
fprintf(stderr,"\n"); fprintf(stderr,"\n");
......
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