From 2e0e012136da6c54a735bd271f3f77edfdc01564 Mon Sep 17 00:00:00 2001 From: Rob <rob@synchro.net> Date: Sat, 19 Sep 2020 23:21:04 -0700 Subject: [PATCH] Change the pause prompt to "More (Y/n) ?" and allow 'N' to stop. --- src/sbbs3/slog.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sbbs3/slog.c b/src/sbbs3/slog.c index 065bee676f..958cd65629 100644 --- a/src/sbbs3/slog.c +++ b/src/sbbs3/slog.c @@ -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; } } -- GitLab