From 4e925bdb3137459bcc41337f8db8a4041cd43ad2 Mon Sep 17 00:00:00 2001 From: Elis Hirwing Date: Sat, 4 Nov 2017 22:09:53 +0100 Subject: [PATCH] Hide the cursor and render more often --- statusscreen.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/statusscreen.go b/statusscreen.go index 439832a..af755d9 100644 --- a/statusscreen.go +++ b/statusscreen.go @@ -18,6 +18,7 @@ func main() { weather := statusscreen.Weather{Config: &config} tm.Clear() + tm.Print("\033[?25l") for { tm.MoveCursor(1, 1) @@ -40,7 +41,7 @@ func main() { tm.Flush() - time.Sleep(1 * time.Second) + time.Sleep(time.Second / 10) } }