repositorypackage
0.0.0-20131010032410-8136607ea412
Repository: https://github.com/ahmetb/go-cursor.git
Documentation: pkg.go.dev
# README
go-cursor
Provides ANSI escape sequences (strings) for manipulating cursor on terminals.
Usage
Here is equivalent of clear
program (cls
command on Windows) written in Go
using go-cursor
:
package main
import (
"fmt"
"github.com/ahmetalpbalkan/go-cursor"
)
func main() {
fmt.Print(cursor.ClearEntireScreen())
fmt.Print(cursor.MoveTo(0, 0))
}