Documentation
¶
Overview ¶
Package ansidecoder implements a ANSI decoder that returns runes and keeps track of cursor position and styling.
Index ¶
Constants ¶
View Source
const BELRune = rune('\x07')
View Source
const ESCRune = rune('\x1b')
View Source
const FinalBytes = "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~)"
View Source
const SGRByte = 'm' // Select Graphic Rendition
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder struct { // state of last returned rune X int Y int Foreground Color Background Color Underline bool Intensity bool Dim bool Invert bool Italic bool Strikethrough bool MaxX int MaxY int State State // contains filtered or unexported fields }
func NewDecoder ¶
NewDecoder returns new ANSI decoder that is a io.RuneReader. See ReadRune for details.
Click to show internal directories.
Click to hide internal directories.