type github.com/charmbracelet/x/ansi.Parser
36 uses
github.com/charmbracelet/x/ansi (current package)
method.go#L146: func (m Method) DecodeSequence(data []byte, state byte, p *Parser) (seq []byte, width, n int, newState byte) {
method.go#L194: func (m Method) DecodeSequenceInString(data string, state byte, p *Parser) (seq string, width, n int, newState byte) {
parser.go#L19: type Parser struct {
parser.go#L59: func NewParser() *Parser {
parser.go#L60: p := new(Parser)
parser.go#L68: func (p *Parser) SetParamsSize(size int) {
parser.go#L76: func (p *Parser) SetDataSize(size int) {
parser.go#L85: func (p *Parser) Params() Params {
parser.go#L92: func (p *Parser) Param(i, def int) (int, bool) {
parser.go#L101: func (p *Parser) Command() int {
parser.go#L106: func (p *Parser) Rune() rune {
parser.go#L116: func (p *Parser) Control() byte {
parser.go#L121: func (p *Parser) Data() []byte {
parser.go#L126: func (p *Parser) Reset() {
parser.go#L132: func (p *Parser) clear() {
parser.go#L141: func (p *Parser) State() parser.State {
parser.go#L146: func (p *Parser) StateName() string {
parser.go#L152: func (p *Parser) Parse(b []byte) {
parser.go#L160: func (p *Parser) Advance(b byte) parser.Action {
parser.go#L170: func (p *Parser) collectRune(b byte) {
parser.go#L181: func (p *Parser) advanceUtf8(b byte) parser.Action {
parser.go#L206: func (p *Parser) advance(b byte) parser.Action {
parser.go#L242: func (p *Parser) parseStringCmd() {
parser.go#L261: func (p *Parser) performAction(action parser.Action, state parser.State, b byte) {
parser_decode.go#L70: func DecodeSequence[T string | []byte](b T, state byte, p *Parser) (seq T, width int, n int, newState byte) {
parser_decode.go#L120: func DecodeSequenceWc[T string | []byte](b T, state byte, p *Parser) (seq T, width int, n int, newState byte) {
parser_decode.go#L124: func decodeSequence[T string | []byte](m Method, b T, state State, p *Parser) (seq T, width int, n int, newState byte) {
parser_decode.go#L354: func parseOscCmd(p *Parser) {
parser_handler.go#L58: func (p *Parser) SetHandler(h Handler) {
parser_sync.go#L19: func GetParser() *Parser {
parser_sync.go#L20: return parserPool.Get().(*Parser)
parser_sync.go#L25: func PutParser(p *Parser) {
github.com/charmbracelet/colorprofile
writer.go#L87: func handleSgr(w *Writer, p *ansi.Parser, buf *bytes.Buffer) {
charm.land/lipgloss/v2
terminal.go#L27: func(seq string, pa *ansi.Parser) bool {
terminal.go#L54: type queryTerminalFilter func(seq string, pa *ansi.Parser) bool
wrap.go#L31: p *ansi.Parser