gat

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: MIT Imports: 15 Imported by: 1

README

gat

Go codecov

Graphical cat command

# Local file
% gat ./samples/sample.png

# By URL
% gat https://raw.githubusercontent.com/otiai10/gat/master/samples/sample.png
in iTerm in Sixel "cell grid" mode (default)
[waiting for PR]

Install

go get -u github.com/otiai10/gat

Options

# iTerm and Sixel
gat -S 0.5 [imagefile] # Scale of output image

# Only for cell grid mode
gat -c [imagefile]      # Use cell grid mode
gat -H 20 [imagefile]   # Rows of output
gat -W 40 [imagefile]   # Cols of output
gat -b [imagefile]      # Print border
gat -t="**" [imagefile] # Text to be printed for each cell
gat -debug [imagefile]  # Dump available colors and color for each cell

As a library

import "github.com/otiai10/gat/render"

r := render.GetDefaultRenderer()
r.Render(os.Stdout, img)

See https://godoc.org/github.com/otiai10/gat/render for more information.

Thanks

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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