使用cat命令显示jpeg/png图像,在某些终端上支持sixel(rlogin/mlterm/tanasinn)。灵感来自Gateone。
sixelterm的Python项目详细描述
安装
通过Github
$ git clone https://github.com/saitoha/sixelterm.git $ cd sixelterm $ python setup.py install
或通过PIP
$ pip install sixelterm
用法
$ sixelterm $ cat test.jpg [imagefile] is expected to be a PNG/JPEG formatted image file.
选项:
-h, --help show this help message and exit --version show version
依赖性
- PySixel https://github.com/saitoha/PySixel
- PySixel depends on Python Imaging Library (PIL) http://www.pythonware.com/products/pil/
- TFF - Terminal Filter Framework https://github.com/saitoha/tff
参考
Gate One, Liftoff Software http://liftoffsoftware.com/Products/GateOne
Chris_F_Chiesa, 1990 : All About SIXELs ftp://ftp.cs.utk.edu/pub/shuford/terminal/all_about_sixels.txt
Netpbm http://netpbm.sourceforge.net/
It includes ppmtosixel command http://netpbm.sourceforge.net/doc/ppmtosixel.html
vt100.net http://vt100.net/