ansi

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

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Default = iota
	Escaping
	ParsingControl
	InControl
	SkipOne
)

States

Variables

This section is empty.

Functions

This section is empty.

Types

type AnsiParser

type AnsiParser struct {
	Rune   func(r rune)
	Escape func(e EscapeSequence)
}

func (*AnsiParser) ConvertFromUTF8

func (a *AnsiParser) ConvertFromUTF8(input []byte) error

type EscapeSequence

type EscapeSequence struct {
	IsCSI        bool
	PrivateModes []rune // not supported, will not be parsed
	Nums         []int
	Trailings    []rune
	Mode         rune
}

func (*EscapeSequence) ParseNumbers

func (e *EscapeSequence) ParseNumbers(buf []rune)

func (*EscapeSequence) Reset

func (e *EscapeSequence) Reset()

Jump to

Keyboard shortcuts

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