internal

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotImplemented          = errors.New(`not implemented`)
	ErrNilReceiver             = errors.New(`nil receiver`)
	ErrNilParam                = errors.New(`nil parameter`)
	ErrNilImage                = errors.New(`nil image`)
	ErrPlatformNotSupported    = errors.New(`platform not supported`)
	ErrTimeoutInterval         = errors.New(`terminal querying timeout (interval)`)
	ErrXTGetTCapInvalidRequest = errors.New(`invalid XTGETTCAP request`)

	DrawerGenericName = `generic`
	TermGenericName   = `generic`

	LibraryName = `termimg`
)

Functions

func DefaultTTYDevice

func DefaultTTYDevice() string

Types

type Arger

type Arger interface{ Args() []string }

Arger is for passing extra arguments to the default terminal execution call e.g. disabling daemonizing (domterm)

type Closer

type Closer interface {
	Close() error
	OnClose(onClose func() error)
	AddClosers(closers ...interface{ Close() error })
}

func NewCloser

func NewCloser() Closer

type ImageEncoder

type ImageEncoder interface {
	Encode(w io.Writer, img image.Image, fileExt string) error
}

Directories

Path Synopsis
encoder

Jump to

Keyboard shortcuts

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