Skip to content

Commit

Permalink
fix(console): ensure cursor visibility on reset for improved terminal…
Browse files Browse the repository at this point in the history
… state
  • Loading branch information
yarlson committed Jan 12, 2025
1 parent b26beaa commit 5a0dfd9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/console/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 5a0dfd9

Please sign in to comment.