From e659b46ff57dfdc4eaa8d01b3cd565b8468ca3e1 Mon Sep 17 00:00:00 2001 From: phanium <91544758+phanen@users.noreply.github.com> Date: Sun, 9 Nov 2025 09:44:27 +0800 Subject: [PATCH] feat: append spinner in the end when --info=inline (#4567) Test: go run main.go --query "$(seq 100)" --info inline --border < <(sleep 60) go run main.go --query "$(seq 100)" --info inline --info-command 'echo hello' --border < <(sleep 60) Close #4344 Close #619 Co-authored-by: Junegunn Choi --- src/terminal.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/terminal.go b/src/terminal.go index add51919..7fddffed 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -2981,6 +2981,11 @@ func (t *Terminal) printInfoImpl() { } else { outputPrinter(t.window, maxWidth) } + if t.infoStyle == infoInline && outputLen < maxWidth-1 && t.reading { + t.window.Print(" ") + printSpinner() + outputLen += 2 + } if t.infoStyle == infoInlineRight { if t.separatorLen > 0 {