神刀安全网

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
Display images in the terminal Display images in the terminal
Display images in the terminal Display images in the terminal
Display images in the terminal Display images in the terminal
Display images in the terminal Display images in the terminal

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » Display images in the terminal

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址