ansiutil

package
v0.82.2 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Strip

func Strip(value string) string

Types

type StreamStripper added in v0.82.0

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

StreamStripper removes ANSI escape sequences while preserving ordinary bytes exactly, including UTF-8 sequences split across writes.

func (*StreamStripper) Write added in v0.82.0

func (s *StreamStripper) Write(input []byte) []byte

Jump to

Keyboard shortcuts

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