From ca734ce565dae69cd3812f693981a5b8a89b0206 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Tue, 16 Apr 2024 11:54:48 +0200 Subject: [PATCH] don't clear line when navigation is disabled Signed-off-by: Nicolas De Loof --- cmd/formatter/logs.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/formatter/logs.go b/cmd/formatter/logs.go index 5a8b75a53..0b4161139 100644 --- a/cmd/formatter/logs.go +++ b/cmd/formatter/logs.go @@ -110,7 +110,9 @@ func (l *logConsumer) write(w io.Writer, container, message string) { p := l.getPresenter(container) timestamp := time.Now().Format(jsonmessage.RFC3339NanoFixed) for _, line := range strings.Split(message, "\n") { - ClearLine() + if KeyboardManager != nil { + ClearLine() + } if l.timestamp { fmt.Fprintf(w, "%s%s%s\n", p.prefix, timestamp, line) } else {