feat: move cursor.Hide() to main

- hide cursor at the start of the client
- ensure cursor is shown again after client execution

🤖
This commit is contained in:
Sebastian Mark 2024-10-23 18:15:26 +02:00
parent 064056e8cb
commit deff8f3554
2 changed files with 5 additions and 3 deletions

View file

@ -1,9 +1,8 @@
package notifications
import (
"git.smsvc.net/pomodoro/ChronoTomato/internal/shared"
"atomicgo.dev/cursor"
"fmt"
"git.smsvc.net/pomodoro/ChronoTomato/internal/shared"
"github.com/fatih/color"
"strings"
)
@ -13,7 +12,6 @@ func TerminalOutput() {
pomodoro := &shared.ServerMessage
cursor.Hide()
fmt.Print("\033[H\033[2J") // Clears the screen
color.Blue("Work: %d ◊ Break: %d ◊ Longbreak: %d\n\n",