don't clear line when navigation is disabled

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2024-04-16 11:54:48 +02:00 committed by Nicolas De loof
parent c9e070f0f6
commit ca734ce565
1 changed files with 3 additions and 1 deletions

View File

@ -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") {
if KeyboardManager != nil {
ClearLine()
}
if l.timestamp {
fmt.Fprintf(w, "%s%s%s\n", p.prefix, timestamp, line)
} else {