anistrip

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

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

Writer is a thread-safe, ANSI-aware, buffering io.Writer.

func NewWriter

func NewWriter(downstream io.Writer, inactivityTimeout, forceFlushTimeout time.Duration) *Writer

NewWriter creates and starts a new ANSI-aware buffering Writer.

func (*Writer) Close

func (w *Writer) Close() error

Close gracefully shuts down the writer, ensuring all buffered data is flushed.

func (*Writer) Write

func (w *Writer) Write(p []byte) (n int, err error)

Write sends data to the manager. It is safe for concurrent use.

Jump to

Keyboard shortcuts

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