From 5b2b89ef649426ceffbf3a265c078170a88d809c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Pinson?= Date: Mon, 19 Feb 2024 16:53:35 +0100 Subject: [PATCH] cursorUp() again MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaƫl Pinson --- status/k8s.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/status/k8s.go b/status/k8s.go index fb16b6b3a4..db5f131a35 100644 --- a/status/k8s.go +++ b/status/k8s.go @@ -367,9 +367,7 @@ func (k *K8sStatusCollector) Status(ctx context.Context) (*Status, error) { continue } - for i := 1; i < lines; i++ { - fmt.Print("\033[A\033[2K") - } + cursorUp(lines) return mostRecentStatus, nil } }