FS#49606 - [cmatrix] -l or -x switch for 'linux mode' not working
Attached to Project:
Community Packages
Opened by Chris (TobalJackson) - Tuesday, 07 June 2016, 15:24 GMT
Last edited by Jelle van der Waa (jelly) - Sunday, 03 September 2023, 09:44 GMT
Opened by Chris (TobalJackson) - Tuesday, 07 June 2016, 15:24 GMT
Last edited by Jelle van der Waa (jelly) - Sunday, 03 September 2023, 09:44 GMT
|
Details
Description: When running `cmatrix -l` or `cmatrix -x` the
program shows only a blank terminal. Highlighting the
terminal contents shows the program is running with
'invisible' font/characters. Investigating revealed the
mtx.pcf file not being registered properly which *may* have
something to do with the issue.
Additional info: * package version(s): 1.2a-11 * running in Terminator under XFCE4 with following env: LANG=en_US.UTF-8 SHELL=/usr/bin/zsh TERM=xterm-256color Steps to reproduce: cmatrix -l or cmatrix -x |
This task depends upon
Closed by Jelle van der Waa (jelly)
Sunday, 03 September 2023, 09:44 GMT
Reason for closing: Won't implement
Sunday, 03 September 2023, 09:44 GMT
Reason for closing: Won't implement
When running `xlsfonts | grep mtx` or `xlsfonts | grep matrix` after installing cmatrix, neither command lists the font as having been 'registered' for use by XServer. That being said, I'm not sure how necessary this is for a terminal-based program, however the documentation seems to imply that there is a mode specifically intended to support X-windows:
`$ man cmatrix`
...
-x X window mode, use if your xterm is using mtx.pcf
...
So I went ahead and registered the mtx.pcf font (found under /usr/share/fonts/misc/mtx.pcf) by running the commands:
`$ cp /usr/share/fonts/misc/mtx.pcf ~/.local/share/fonts/`
`$ xset -fp ~/.local/share/fonts/`
`$ xset -fp rehash`
and then `xlsfonts | grep mtx` indeed shows an entry for mtx. At this point, I've been referring to this article on how to manage fonts: http://gobase.org/dict/JIS/helponXfonts.html, and it lists the final command `xfd -fn <fontname>` in order to display the character set of a registered font, which I ran:
`$ xfd -fn mtx` which produces the following: https://i.imgur.com/TUmLJZy.png
This indicates that the font file is intact and functional, however running `cmatrix -l` or `cmatrix -x` at this point still results in a blank window for me under terminator, xterm, xfce terminal, gnome terminal, etc... all running under an X-windows session (XFCE4 Desktop Manager).
If you want to be sure, just run `mkfontscale usr/share/fonts/misc` and `mkfontdir usr/share/fonts/misc` as root. The install script should actually be doing that, but it will be done by hooks in the near future anyway.
The special modes require special terminals. "-l" only works on a tty and and "-x" only works in a handful of graphical terms. (Xterm and aterm for now. It doesn't work with vte-terms such as xfce-terminal.) The "cmatrix-tty" script tries to cover all of these cases.
What you're saying is is that there is no way to get the "matrix" font to show in a normal terminal emulator like terminator running under xfce4 and zsh (like I am)? I've also tried running the program in xterm using `cmatrix -x` and still get a blank screen. I've also tried switching to tty1 and running `cmatrix -l` and also get a blank screen.
However something is not quite right with tty or xterm. They run for me but the only visible character is the pipe character. Not sure when or why that broke.