ansi

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CUU = 'A' // Cursor Up
	CUD = 'B' // Cursor Down
	CUF = 'C' // Cursor Forward
	CUB = 'D' // Cursor Back
	CNL = 'E' // Cursor Next Line
	CPL = 'F' // Cursor Previous Line
	CHA = 'G' // Cursor Horizontal Absolute
	CUP = 'H' // Cursor Position
	ED  = 'J' // Erase in Display
	EL  = 'K' // Erase in Line
	SU  = 'S' // Scroll Up
	SD  = 'T' // Scroll Down
	HVP = 'f' // Horizontal Vertical Position
	SGR = 'm' // Select Graphic Rendition
	VT  = '~'
)

Variables

This section is empty.

Functions

func CreateCS

func CreateCS(cmd rune, args ...int64) string

func IsCSI

func IsCSI(c rune) bool

func IsESC

func IsESC(c rune) bool

func ReadCS

func ReadCS(reader *bufio.Reader) (rune, []int)

func WriteCS

func WriteCS(writer io.Writer, cmd rune, args ...int64)

Types

This section is empty.

Jump to

Keyboard shortcuts

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