aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoop Kiefte <ikojba@gmail.com>2020-09-14 10:01:30 +0200
committerJoop Kiefte <ikojba@gmail.com>2020-09-14 10:01:30 +0200
commitfa1977a458fc8ef157d6d581ddeb0a7bca3b5355 (patch)
tree38ea0fd2396a539acb09ef65640c201d6da0ad36
parent16f8079f83bf770038c71e88b17b83ca6b17edbd (diff)
keep the score etc on screen after playingv0.3.2
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 26ffd17..b075825 100644
--- a/main.go
+++ b/main.go
@@ -57,7 +57,7 @@ func main() {
term.RawMode(t)
defer t.Restore()
- defer ppos(0, 0, "\033[2J") // Clear screen and back to 0,0
+ defer pos(23, 0) // Set the cursor to just below the playing field
t.SetReadTimeout(time.Second / 1000)