-
-
Notifications
You must be signed in to change notification settings - Fork 417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use both "setfont" and "consolechars". #81
Comments
Occurs under RHEL7 as well. |
and OSX |
Necro, occurs on Fedora 32 using the git master branch |
cmatrix -lba
Unable to use both "setfont" and "consolechars". Looks like the problem is with the |
I experienced the same issue here. It only works without the -l flag on MacOs |
I can confirm that the problem is with the -l flag and still exists. I have same issue with Arch and Manjaro. It works on Debian 10 though (all installed from official repos). |
Can confirm as well for the same bug on Manjaro with the -l flag |
Having this in iTerm2 and all shells on OSX Mojave as well |
Does not work for me on Debian bullseye in Konsole. |
-l flag is for linux console (the one you get with Ctrl+Alt+F3). You can't use it with graphical terminal emulators. |
You mean a TTY? |
Yes, a local one. SSH'ing from another computer also creates a TTY but I don't think you can use the -l flag over ssh. Terminology on this subject is a little bit complicated. |
Not sure what you're basing any of this on. If you look at the code, it simply calls |
Does not work their either. |
Yeah? So try changing your Konsole or gnome-terminal or any other graphical terminal emulator font using consolechars. Or try using your terminal's font while you are in a ssh session. Or even try it in a TTY (it would work if we were living in 2009 or something like that). "consolechars" is an obsolete command. Manjaro and Arch use "setfont" instead. Debian also doesn't include it in their repos anymore. It uses "dpkg-reconfigure console-setup" or "setfont" to change TTY font. And neither setfont nor debian's solution don't change your X terminal emulator's (ie Konsole, Gnome Terminal, xfce4-terminal, etc.) font. |
That is what is used in the code, hence this bug report... |
If I understand correctly; In the configure.ac file it checks for The problem is even though most distros include I think the problem on Manjaro and Arch is about preconfiguration processes. Maybe package maintainers haven't compiled it with |
This same issue arises on Arch Linux with Terminator (installed via |
I think this bug report along with #85 arise from a misunderstanding of the feature and poor documentation in the --help and manpage, rather than from an actual bug in the code. The |
Tested it with an actual tty and it does not work there either. |
I just did as well. Seems to work fine (arch linux 5.9.12) @SuperSandro2000 Can you provide more details about your system? Do you have setfont, or consolechars (or both) installed? |
This is what I was trying to say and I was almost getting lynched because of it 😂 Anyways It wasn't working on Manjaro or Arch for me even in a TTY (works on deb based distros) but I haven't tried for a while. maybe it's fixed now, I'll try this evening. Even it doesn't work, seeing someone reporting it's working on an Arch based distro is something, a starting point to investigate at least. |
Who is running this in a TTY? AReally would love to figure a workaround for getting the japanese characters to work in terminal like a normal civilized human being |
@kneel23 I cannot speak for MacOS, but in Linux, applications generally cannot change a running terminal emulator's font. (specifically because there isn't really a standard for doing this, and often the font used by the emulator is specified somewhere in the emulator's configuration and cannot be changed without reloading. What you're asking for would require a full rewrite to make this application handle its own gui and font modes. I don't think you should hold your breath on that. As far as getting the Japanese characters to work natively in terminal, please see #57 and my updates there. |
Yes, but I think it should be under another issue title. Because it's not a bug, it's a feature request. It can be done, there are other programs that do it like this one: https://github.com/M4444/TMatrix I don't say it can be closed because I still have issues even in TTY (this is how it supposed to work). But While it's an issue tagged as "bug", there should be another issue for problems about graphical terminal emulators |
@space-pagan I tried it on manjaro again and it still doesn't work and gives the error in the title. I have setfont installed and it works well when I run it manually |
What error specifically, do you get? |
@space-pagan it returns |
Okay, I think it's something with the way the pre-compiler is operating, but I'm going to need you to answer some stuff so I can narrow it down:
|
the compiled program doesn't give the same error message but instead of japanese characters it shows lots of ?s , ↑s and some random western alphabet characters. I also tried running it in root directory of the cloned repo because matrix font file is located in there but the result didn't change. It also doesn't install matrix font file into my consolefonts directory which is /usr/share/kbd/consolefonts . When I install cmatrix with pacman from Manjaro repos it installs matrix font to that location.
|
Pardon me re 4. - it should be It's also pretty weird that you're getting ?'s, since the characters being put to terminal are within the normal ascii range, and should be rendered correctly even if setfont isn't loading correctly... (the font just overrides the normal a-zA-Z range) One thing I can think of is that you did a Thanks for being cooperative on this. I'm seeing myself doing a fairly sizeable PR and I'm trying to incorporate as many fixes at once as I can. |
@space-pagan here they are. PS: Since I removed Manjaro version of cmatrix using pacman matrix font is also removed from my /usr/share/kbd/consolefonts directory. It's not in there right now. And compiling from git repo doesn't install it there because it doesn't check that specific path. It only checks /usr/lib/kbd/consolefonts and /usr/share/consolefonts. and gives the warning in my message one above. |
Right. I've patched that install location in my fork. Care to give it a try? |
can confirm that your local fork works properly on my machine (fedora 32, 5.9.11-100.fc32.x86_64) |
the cmake build is broken though, it doesn't link ncursesw |
I can confirm that it works with your patch! Thank you for all your efforts. didn't quite liked the more dense rain though |
Well, I never said it was a ready release. Good to know this specific issue is fixed though, and I'll fix the cmake issue you mentiojned and work on the other open feature requests in the tickets here. @ulichx I was going to add a option flag for that. |
just wanted to let ya know in case you weren't aware :p thanks for the patch! |
Turns out that the CMake configuration wasn't even searching for, nor defining |
@space-pagan can confirm this works perfectly! i haven't run through every combination of options, but |
@3n-k1 thank you for the feedback! The |
I can confirm that with cmake your fork builds and works as intended. Characters shows correctly. But overall running is a little bit buggy. Characters slowly pile up together and once after a while everything on the screen jumps one line up . |
Okay, great! I noticed the jumping issue as well. I'll look into why it's happening. The current code for generating the streams is actually really poorly written in my opinion, so I'm going to be doing a fairly sizeable rewrite soon, so it might be a non-issue once I do. We'll see. |
@space-pagan huh, really? well upstream's
|
@3n-k1 well... that's because I've been fixing upstream's code... And you're correct that Anyway, I think this is pretty much solved. I'll request that it gets closed once I submit my pr. I'm just trying to solve all the open tickets in one go. |
@space-pagan you're literally a hero, thank you so much for your hard work <3 |
Pretty odd but well looked into, appreciate if you could make a PR :D |
@space-pagan you may wanna make a pull request including only fixes about setfont issues on .configure and cmake methods for now, so this fixes can be mainlined quicker in my opinion. And again thanks for your efforts on this |
… to use both "setfont" and "consolechars": abishekvashok#81)
Still getting this same issue on my MacBook Pro Late 2013 model, running macOS Big Sur and a fresh install of cmatrix. Unable to use both "setfont" and "consolechars". Happened when attempting to execute |
@space-pagan Could you submit a PR to this repo based on your fork? https://github.com/space-pagan/cmatrix |
It's sad @space-pagan 's fork has not further developed to be a stable build and merged into upstream. Seems like they're not active on github anymore. That's why I had suggested this:
Can anyone capable of doing this at least fork @space-pagan 's repo, rebase to this repos master and apply only changes related to this setfont etc. issue and make a PR? |
I am submitting a
Problem in Brief
cmatrix -lba
pops error as mentioned in the title. Same error pops while using cmatrix on WSL (windows subsystem for linux).Solution (if any)
Would you like to work on it?
no
The text was updated successfully, but these errors were encountered: