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 provides various demos using SIXEL.
This library is developed for displaying images on ghci.
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.
For using sixel, see terminal requirements of libsixel.
This library supports OSC-1337, too. OSC-1337 is available for iterm2 and hterm of crostini.