Open MestreLion opened 3 years ago
Also, it would be great if cmake
or its README could provide some instructions on how to use the X11 font mtx.pcf.gz
on xterm or gnome-terminal. By default Ubuntu/Debian disables bitmaps fonts under X11, so it would be great to have the steps to enable its use.
I'm using the 1.2a cmatrix on Ubuntu 18.04. I'm aware this is an old version, but upon inspecting both current git code and Debian and Ubuntu most recent packages I believe the scenario is the same:
When using
cmatrix -l
, it runssetfont matrix
. This leads to loading/usr/share/consolefonts/matrix.fnt
. The FNT font is an improvement over the default font, but the best result is usingsetfont matrix.psf
by hand beforecmatrix -l
, as/usr/share/consolefonts/matrix.psf.gz
comes with the Unicode mapping. The PSF version really makes almost all characters Japanese, it's a much much better experience!When exiting,
cmatrix -l
runssetfont
with no parameters, as an attempt to restore the default TTY font. But... Ubuntu (and possibly Debian) has no default font, at least in the waysetfont
expects. It printsCannot find default font
and leaves the TTY with the matrix font.cmatrix
issue per-se, as (I guess) Ubuntu/Debian are supposed to have a/usr/share/consolefonts/default
font/symlink. Creating such symlink withsudo ln -s Lat15-Fixed16.psf.gz /usr/share/consolefonts/default
works, but this makes an assumption about the system's actual default font.cmatrix
simply restored to previous one. It would work even if user has changed his default font in~/.bashrc
or similar.setfont
has no way to know/tell the current font in use, but it can save it (and its mapping) to a file with-O
!Maybe the same strategy could be done by
cmatrix
itself?