From 783ce619ac4965613889a77e0acd88b210d6553d Mon Sep 17 00:00:00 2001 From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Thu, 7 Nov 2024 06:41:23 -0700 Subject: [PATCH] use same stream in waypt_status_disp & termination in waypt_disp_session. stderr is a text stream which should translate '\n' -> '\r\n' on windows automatically. --- defs.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/defs.h b/defs.h index 75eb6e723..95072fdb5 100644 --- a/defs.h +++ b/defs.h @@ -572,7 +572,9 @@ WaypointList::waypt_disp_session(const session_t* se, T cb) } } if (global_opts.verbose_status) { - fprintf(stdout, "\r\n"); + // Terminate the progress line from waypt_status_disp. + fprintf(stderr, "\n"); + fflush(stderr); } }