2 ms·
But it being inline is a critical requirement, or we'd just shell out to any of a number of image viewers. The problem isn't a lack of options for showing image
by vidarh 4y ago
But it being inline is a critical requirement, or we'd just shell out to any of a number of image viewers. The problem isn't a lack of options for showing images, but a lack of options to show inline images.
Not needing to pull in a dependency also matters. E.g. this is enough to do Sixel on a supporting terminal:
echo 'G1BxIzA7MjswOzA7MCMxOzI7MTAwOzEwMDswIzI7MjswOzEwMDswIzF+fkBAdnZAQH5+QEB+fiQjMj8/fX1HR319Pz99fT8/LSMxITE0QBtcCg==' | base64 -d
Or e.g (I have no idea if this will survive HN's comment parsing, but it's the output of base64 decoding the above in single quotes):
printf '\ePq#0;2;0;0;0#1;2;100;100;0#2;2;0;100;0#1~~@@vv@@~~@@~~$#2??}}GG}}??}}??-#1!14@\e\\\n'
Having other options is great, but then don't remove the desire to have something really basic as well.
- kragen 4y agoyes, i agree