Issue
I want to view some ansi-art on the linux local-console. (my setup:raspberry pi3 / newest raspbian - no x11)
i've tried many different settings in raspi-config, dpkg-reconfigure console-setup, /etc files, environment vars but i had no luck yet. do i need a special pcf font to get it working?
a reliable way to enable it for remote terminals would also be great.
thanks in advance
Solution
It depends on what your data uses (see chart). Codes 0..31
are a problem unless you have a program that can map those codes to a printable value (as noted in Why does showconsolefont have different output in tmux?, the showconsolefont
program does this mapping of 0..31
).
Most of the usable fonts for the Linux console are "psf" fonts: having a header which tells which Unicode values each glyph corresponds to. Using that, along with a known character set (cp437), you could convert the data or "play" it using an application which knows how to do this:
- You could convert it using
iconv
orrecode
, or - The line-drawing (
128..255
) could be done usingluit
in a UTF-8 console.
Answered By - Thomas Dickey Answer Checked By - David Marino (WPSolving Volunteer)