-
Notifications
You must be signed in to change notification settings - Fork 328
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
Directory colors are too dim by default #104
Comments
@flw-cn Thank you for your interest in lf and also for reporting this issue as I was meaning to write something about this for a while. Unfortunately, If you ask me, this issue is more about having dim colors as defaults rather than supporting 24-bit colors. Normally This difference between On the other side of this issue, terminals interpret the 'bold' attribute (i.e. I use the following script to test this behavior:
When the left column is matched with the right column, In my opinion, the most reasonable solution to this issue is to ask terminal developers to use the same method for 3-bit and 8-bit color codes. Since this is not an option, the easiest workaround for now is to either use I'm changing the title to something more appropriate to track this issue here. |
@gokcehan Thank you for explaining patiently to me. I have found a way under your guidance.
|
@flw-cn That sounds like a simple solution. I'm glad to hear it worked out for you. Sorry for my long response by the way. I had taken a look at this a few times before and I keep forgetting why this happens. So I wanted to document this somewhere to work on it later on. |
Thank you @gokcehan for explaining the problem so well. Apparently the mapping between 3-bit colour codes in The workaround I came up with was to use a custom mapping between 3-bit colour codes (as used by ls) and 8-bit colour codes. I got a basic
Using this form of In the long run it might be a good idea to do some sort of custom 3-bit / 8-bit mapping by default in order to get nice default colours on most terminals (e. g. by defaulting to high-intesity colours for bold text). This might be convenient for users who don't want or need custom colours, just sensible / readable defaults. Just a thought, though. |
@seifferth Thanks for the solution and pinging me again for this issue. I fully agree with sensible/readable defaults. It seems to me that the easiest solution for now is to use 8-bit mode in termbox and hide 256 color mode behind an option. In 8-bit mode |
I have now changed the ui to use 8 colors by default (i.e. sgr 3-bit codes). There is now an option named Closing this issue now. Feel free to report here any issues you have. |
Hi, @gokcehan I got same issue this time (maybe be different reason): But seems the reason is the terminal colorscheme I used, I'm on Konsole using Gruvbox Dark colorscheme from here: https://github.com/morhetz/gruvbox-contrib/blob/master/konsole/Gruvbox_dark.colorscheme The error message is very hard to figure out. After change to another colorscheme Darcula for example the text message is distinct, but I prefer to gruvbox in daily using. Any suggestion will be appreciated!!! |
@roachsinai You should be able to customize error message colors with |
@gokcehan thanks for quick reply, I'll check it! |
Change it by |
lf
is really a great idea! I really like it. But it looks very dim on my terminal. So I hope that please to support TrueColor if possible.The text was updated successfully, but these errors were encountered: