From 5a0dfd9771c3fcd702c7e1122ed62b726fa0f908 Mon Sep 17 00:00:00 2001 From: Yar Kravtsov Date: Sun, 12 Jan 2025 10:02:15 +0200 Subject: [PATCH] fix(console): ensure cursor visibility on reset for improved terminal state --- pkg/console/console.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/console/console.go b/pkg/console/console.go index 244f605..e95b6f3 100644 --- a/pkg/console/console.go +++ b/pkg/console/console.go @@ -83,6 +83,7 @@ func Print(a ...interface{}) { // Reset ensures the cursor is visible and terminal is in a normal state. func Reset() { _ = os.Stdout.Sync() + fmt.Print("\033[?25h") } func ClearPreviousLine() {