ansi

package
v0.0.0-...-3f18df6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SS2 = ascii.ESC + "N"
	SS3 = ascii.ESC + "O"
	DCS = ascii.ESC + "P"
	CSI = ascii.ESC + "["
	ST  = ascii.ESC + "\\"
	OSC = ascii.ESC + "]"
	SOS = ascii.ESC + "X"
	PM  = ascii.ESC + "^"
	APC = ascii.ESC + "_"
	RIS = ascii.ESC + "c"
)

Variables

View Source
var (
	CursorUp       = func(n int) string { return MakeCSISeq("A", n) }
	CursorDown     = func(n int) string { return MakeCSISeq("B", n) }
	CursorForward  = func(n int) string { return MakeCSISeq("C", n) }
	CursorBack     = func(n int) string { return MakeCSISeq("D", n) }
	CursorNextLine = func(n int) string { return MakeCSISeq("E", n) }
	CursorPrevLine = func(n int) string { return MakeCSISeq("F", n) }
	CursorHorzAbs  = func(n int) string { return MakeCSISeq("G", n) }
	CursorPos      = func(n, m int) string { return MakeCSISeq("H", n, m) }
	EraseInDisplay = func(n int) string { return MakeCSISeq("J", n) }
	EraseInLine    = func(n int) string { return MakeCSISeq("K", n) }
	ScrollUp       = func(n int) string { return MakeCSISeq("S", n) }
	ScrollDown     = func(n int) string { return MakeCSISeq("T", n) }
	HorzVertPos    = func(n, m int) string { return MakeCSISeq("f", n, m) }
	SGR            = func(n ...int) string { return MakeCSISeq("m", n...) }
)

Functions

func MakeCSISeq

func MakeCSISeq(c string, x ...int) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL