terminal

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package terminal implements terminal evaluation functions.

Index

Constants

View Source
const (
	RETURN  = '\r'
	NEWLINE = '\n'
	ESCAPE  = 0x1B
	CSI     = '['
	CUB     = 'D'
	ELINE   = 'K'
	SGR     = 'm'
	CUP     = 'H'
	ED      = 'J'
)

https://xfree86.org/4.8.0/ctlseqs.html https://gist.github.com/fnky/458719343aabd01cfb17a3a4f7296797

Variables

This section is empty.

Functions

func Parse

func Parse(data []byte) ([]byte, error)

Parse evaluates ANSI escape sequences

Types

type Parser

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

Jump to

Keyboard shortcuts

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