- status: pending-accepted --> closed-accepted
This patch is a slightly modified version of the original patch made by kmiya found at
http://nanno.dip.jp/softlib/man/rlogin/#REGWIND
It implements a new terminal sixelgd
which produces sixel graphics like the sixel
terminal, but uses gdlib to draw instead of the built-in bitmap code. It hence offers support for "truecolor", truetype fonts, transparency, and anti-aliased lines. Plots with more than 256 colors are displayed using dithering.
The original sixel
terminal can by found here: [patches:#647].
Additional changes by me:
sixelgd
to avoid name conflict with the existing sixel
terminaltransparent
in truecolor
mode by filling with "zeroth" colorThe libsixel library https://github.com/saitoha/libsixel/ is derived from the same code, and is maintained actively. So it might be worthwhile considering to use that instead of including parts of its code. I am not sure though if that wouldn't require having a second copy of the bitmap in memory and if that solution would still support "transparent" graphs. On the other hand this patch adds only around ~500 lines and does not add another dependency and configuration check.
The same could be implemented using the cairo terminal code rather easily.
License: The code in sixel.c is should be covered by a permissive license which is only given in Japanese. Below is the translation given on the libsixel github site:
Anyone is free to use this program for any purpose,
commercial or non-commercial, without any restriction.Anyone is free to distribute, copy, publish, or
advertise this software, without any contact.Anyone is free to distribute with modification of the
source code, but I "hope" that its based version or
date will be written clearly.
2014/10/05 kmiya