# SIXEL Library for Haskell SIXEL, short for "six pixels", is a bitmap graphics format supported by terminals and printers from DEC. It can show graphics in a terminal emulator. [libsixel](https://saitoha.github.io/libsixel/) provides various demos using SIXEL. This library is developed for displaying images on ghci. # Usage This library provides "Show-intances of Sixel-Commands" and "ToSixel type class to change image data into Sixel-Cmmands". To render image data on ghci, just run 'toSixel image-data'. 'putImage' is a wrapper of "readImage 'image-file' >>= putStr.show.toSixel". See following demo. ![demo](https://raw.githubusercontent.com/junjihashimoto/sixel/master/demo.png) # Terminal requirements For using sixel, see terminal requirements of [libsixel](https://saitoha.github.io/libsixel). This library supports OSC-1337, too. OSC-1337 is available for iterm2 and [hterm of crostini](https://chromium.googlesource.com/apps/libapps/+/master/hterm). ![demo](https://raw.githubusercontent.com/junjihashimoto/sixel/master/demo-osc1337.png) # References * https://en.wikipedia.org/wiki/Sixel * https://saitoha.github.io/libsixel * https://chromium.googlesource.com/apps/libapps/+/master/hterm/doc/ControlSequences.md#OSC-1337 * https://www.iterm2.com/documentation-escape-codes.html