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
Click to show internal directories.
Click to hide internal directories.