-
-
Notifications
You must be signed in to change notification settings - Fork 59
Ticket #3023, #4985: Black and white skin cleanups #4986
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
base: master
Are you sure you want to change the base?
Conversation
Its look was vastly different under ncurses (2 colors) vs. slang (4 colors). Go for 2 colors only, since this is a last resort fallback. The selected file, if marked as well, is no longer invisible. Restrict the attributes to bold, reversed, and the combination of these two. Don't use underlined text, since terminals where this mode is necessary are unlikely to support it. Various other minor tweaks and updates were also made. Those who have a powerful terminal, yet look for a simple look consisting of maybe 4 grayscale colors and decorations like underline, should create such a skin rather than relying on this hardcoded one. Signed-off-by: Egmont Koblinger <egmont@gmail.com>
e803e0c to
3aef137
Compare
|
The combination of Slang with As if there was another hardwired skin...? Weird. Investigating... |
…e colors These were only used internally by the hardcoded black and white skin, up until the previous commit. Signed-off-by: Egmont Koblinger <egmont@gmail.com>
3aef137 to
50a8b9b
Compare
|
(Side note: No, there isn't another hardwired skin. With mono TERM values, combined with Slang's color-aware methods, the "bold" flag becomes "reverse" instead. So if either of the properties (or both) are present, you get reverse video, and never bold. (The same color-aware methods work properly if you pass "default" for both colors, i.e. restrict yourself not to use any colors, however TERM describes a color-aware terminal.) I suspect this might be a Slang bug, or a pretty unfortunate design decision. Anyway, I've worked it around. |
zyv
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, that bugged me last time I worked on AIX. I agree with simplifying stuff. Thank you!
Sorry, I'm really not following this comment. The screenshot was taken without my patch, as per the commit ID shown. Does my patch change the colors in a notable way (for better or worse)? By breaking all drawing characters do you mean that at some point real lines were replaced by Could you please file a bugreport for the broken lines with the details? The ACS variant of |
It is with your patch, and it makes it better. Your changes are in a different repository, and it's hard for me to check them out there. So I rolled the patch up manually. Black and white now makes sense. Before it was still black and white, somehow not consistent.
Before (not long after 4.8.33), all characters were completely randomly broken. Now, as you can see, the only weird stuff I can notice now is ≠. So the work you did before must have led to these improvements. I'm not sure why ≠ is not replaced.
I'm not sure what I should put in the report. If you log into cfarm119 and run mc, you should see what I see. The source is in |
Yup, I see this. The printed escape sequence is somewhat different, equivalent to
Whatever we already know about the story, plus the screenshot :) By the way, did you tamper with mc's config in some way? In my opinion, the first question is not why there are
Maybe slang wasn't built with color support or cannot locate the terminfo database or something like this? At this point I'd bet it's a slang misconfiguration + a slang bug triggered by this misconfiguration. |

Proposed changes
Fix & update the black and white skin. Followup internal cleanup.
Checklist
👉 Our coding style can be found here: https://midnight-commander.org/coding-style/ 👈
git commit --amend -smake indent && make check)