gilo/internal/ansi/ansi.go
2021-03-24 15:20:57 -04:00

14 lines
243 B
Go

package ansi
import "fmt"
const ClearLine = "\x1b[K"
const ClearScreen = "\x1b[2J"
const HideCursor = "\x1b[?25l"
const ShowCursor = "\x1b[?25h"
const ResetCursor = "\x1b[H"
func Code (s string) string {
return fmt.Sprintf("\x1b[%s", s)
}