From ca933d4a1222cc2e8eb7a7357e5d670993a89c0a Mon Sep 17 00:00:00 2001 From: Christian Deacon Date: Wed, 26 Feb 2025 17:59:47 -0500 Subject: [PATCH] Improve stdout when logging messages. --- src/loader/utils/logging.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/loader/utils/logging.c b/src/loader/utils/logging.c index 8881f1f..307045a 100644 --- a/src/loader/utils/logging.c +++ b/src/loader/utils/logging.c @@ -45,7 +45,10 @@ static void LogMsgRaw(int req_lvl, int cur_lvl, int error, const char* log_path, // If we're calculating stats, we need to prepend a new line. if (doing_stats) { + printf("\033[F"); + fprintf(pipe, "\n%s\n", full_msg); + } else {