kitty

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsKittyTerminal

func IsKittyTerminal() bool

IsKittyTerminal detects if we're running in a Kitty terminal

Types

type ImageDisplay

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

ImageDisplay handles displaying images in Kitty terminal

func NewImageDisplay

func NewImageDisplay() *ImageDisplay

NewImageDisplay creates a new Kitty image display handler

func (*ImageDisplay) Cleanup

func (d *ImageDisplay) Cleanup()

Cleanup should be called when done with the display

func (*ImageDisplay) ClearImages

func (d *ImageDisplay) ClearImages()

ClearImages clears temporary files

func (*ImageDisplay) DisplayImage

func (d *ImageDisplay) DisplayImage(reader io.Reader, width, height int) error

DisplayImage displays an image in the Kitty terminal using kitten icat

Jump to

Keyboard shortcuts

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