Add next line function in case we need it later

This commit is contained in:
Christian Rocha 2020-01-15 23:04:53 -05:00
parent fe42b5c4a7
commit 0c8e2ea5a0
No known key found for this signature in database
GPG Key ID: D6CC7A16E5878018
1 changed files with 5 additions and 0 deletions

5
tea.go
View File

@ -169,6 +169,11 @@ func showCursor() {
fmt.Printf(esc + "?25h") fmt.Printf(esc + "?25h")
} }
// Move the cursor up a given number of lines
func cursorDown(n int) {
fmt.Printf(esc+"%dE", n)
}
// Move the cursor up a given number of lines // Move the cursor up a given number of lines
func cursorUp(n int) { func cursorUp(n int) {
fmt.Printf(esc+"%dF", n) fmt.Printf(esc+"%dF", n)