1
0
Fork 0
gilo/terminal/ansi.go

14 lines
247 B
Go

package terminal
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)
}