gilo/internal/ansi/ansi.go

10 lines
153 B
Go
Raw Normal View History

2021-03-24 15:09:28 -04:00
package ansi
import "fmt"
const ClearScreen = "\x1b[2J"
const ResetCursor = "\x1b[H"
func Code (s string) string {
return fmt.Sprintf("\x1b[%s", s)
}