github

ichinaski / pxl

  • понедельник, 30 мая 2016 г. в 03:12:51
https://github.com/ichinaski/pxl

Go
Display images in the terminal



pxl

pxl is a little hack to display images in the terminal.

Installation

You will need to have Go installed and configured in your path. Your terminal must have xterm-256color mode enabled.

go get github.com/ichinaski/pxl

Usage

pxl [-r whratio] filename

where the optional flag -r sets the cursor's width/height ratio. This flag has a default value of 2.35, make sure you update it to match your terminal environment.

Close the image with <ESC>.

Disclaimer

You may want to squint your eyes or take a few steps backwards when looking at the output.

Examples

image pxl

License

This software is distributed under the BSD-style license found in the LICENSE file.