options

package
v0.0.0-...-0823357 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidFitFormat = errors.New("fit format")
	ErrInvalidColors    = errors.New("colors argument")
)

Functions

This section is empty.

Types

type Options

type Options struct {
	UseShadeBlocks bool
	// `[auto[-LINES]|COLUMNSxLINES]`
	Fit string
	// `[ansi|bash|echo|sh]`
	Format string
	// `[auto|ansi|ansi256|ansirgb]`
	Colors string
}

func (Options) GetFitRect

func (o Options) GetFitRect(term terminal.Terminfo) (image.Rectangle, error)

func (Options) GetPalette

func (o Options) GetPalette(term terminal.Terminfo) (palettes.ANSIPalette, error)

Jump to

Keyboard shortcuts

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