From 20785351b1c76599b2dd413d2ce259bdbed38b21 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 6 Jan 2025 22:36:50 +0100 Subject: [PATCH] pretty-print: drop extra ';' from progress reporting end sequence This corrects the closing sequence for the ConEmu progress reporting final sequence. We by mistake sent two final ;;, where only one was expected. The terminals I tested this with didn't care, but Ghostty apparently does. Let's fix things and generate the closing sequence as per doc: https://conemu.github.io/en/AnsiEscapeCodes.html#ConEmu_specific_OSC --- src/shared/pretty-print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/pretty-print.c b/src/shared/pretty-print.c index 1b735625847..d8a55376585 100644 --- a/src/shared/pretty-print.c +++ b/src/shared/pretty-print.c @@ -556,7 +556,7 @@ void clear_progress_bar_unbuffered(const char *prefix) { stderr); else /* Undo Windows Terminal progress indication again. */ - fputs(ANSI_OSC "9;4;0;;" ANSI_ST + fputs(ANSI_OSC "9;4;0;" ANSI_ST ANSI_ERASE_TO_END_OF_LINE, stderr); fputc('\r', stderr); -- 2.47.3