👉 Did you know:
You can display actual bitmap images on the actual console in selected terminal emulators.
https://en.wikipedia.org/wiki/VT340Observe:
(The third line sets up some exceptions so we're allowed to query XTerm about its active screen size in pixels, from which we can then calculate the character cell size, which is kind of important to know when you want to align sixel graphics with text. Other terminal emulators already allow this by default.)
The only other sixel-capable X terminal emulator offered by Debian Buster is mlterm. No special options are needed to enable sixel graphics.
See the libsixel home page for other sixel-capable terminal emulators, including ones for the framebuffer console.
libsixel-bin
and use its img2sixel
program to display most common image formats.population.awk
:
horigraph.awk
:
population-bitmap.awk
(v1):
population-bitmap.awk
(v2):
bifur-bitmap.awk
:
text-test.sixel
:
mandelbrot-bitmap.awk
showing the full mandelbrot set:
mandelbrot-bitmap.awk
- usage - zooming in:
mandelbrot-bitmap.awk showing a zoomed-in view of the mandelbrot set:
sixkcd.bash black-on-white:
sixkcd.bash white-on-black:
img2sixel
are available from Debian Buster package libsixel-bin
. It also provides Python bindings, but sadly these aren't packaged for _Buster_.