Browse Source

Clear rest of the screen after printing

master
Elis Hirwing 2 years ago
parent
commit
a8e114c136
Signed by: etu <elis@hirwing.se> GPG Key ID: D57EFA625C9A925F
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      main.go

+ 2
- 0
main.go View File

@@ -38,6 +38,8 @@ func main() {
tm.Print(row + "\033[K\n")
}

tm.Print("\033[J")

tm.Flush()

time.Sleep(time.Second / 10)


Loading…
Cancel
Save