parser

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ITerm2DA1Parser

type ITerm2DA1Parser struct {
	// contains filtered or unexported fields
}

for queries.ITerm2PropVersion+queries.DA1 queries

func (*ITerm2DA1Parser) Parse

func (p *ITerm2DA1Parser) Parse(r rune) bool

type Parser

type Parser interface {
	Parse(rune) bool
}

Parser.Parse returns true when end of terminal reply is reached.

func DA1Wrap

func DA1Wrap(p Parser) Parser

func NParser

func NParser(p Parser, n uint) Parser

func NewParser

func NewParser(terminology bool, stopOnCSI bool) Parser

type ParserFunc

type ParserFunc func(rune) bool

ParserFunc returns true when end of terminal reply is reached.

var StopOnAlpha ParserFunc = func(r rune) bool {
	return (r >= 'A' && r <= 'Z') || (r >= 'a' && r <= 'z')
}
var StopOnBackSlash ParserFunc = func(r rune) bool { return r == '\\' }
var StopOnC ParserFunc = func(r rune) bool { return r == 'c' }
var StopOnR ParserFunc = func(r rune) bool { return r == 'R' }

func (ParserFunc) Parse

func (f ParserFunc) Parse(r rune) bool

Parse returns true when end of terminal reply is reached.

Jump to

Keyboard shortcuts

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