Documentation ¶
Overview ¶
Package kittyimg provides utilities to show image in a graphic terminal emulator supporting kitty's "terminal graphics protocol".
See https://sw.kovidgoyal.net/kitty/graphics-protocol.html.
Example ¶
package main import ( "embed" "image" "os" // Plugin to decode GIF "github.com/dolmen-go/kittyimg" _ "image/gif" ) //go:embed dolmen.gif var files embed.FS func main() { f, err := files.Open("dolmen.gif") if err != nil { panic(err) } defer f.Close() img, _, err := image.Decode(f) if err != nil { panic(err) } kittyimg.Fprintln(os.Stdout, img) }
Output:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.