where does eza get default colors from? #706
-
as other programs like fd, mcfly have difficulties with their color scheme, and eza gets it right, i was wondering how eza gets its default colors? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The colors themselves are "hardcoded", meaning e.g. config type files are yellow, dirs are blue, etc... just using ansi escape codes from ansiterm that will obviously show up differently depending on the specific color scheme you have setup with your specific terminal that determines exactly which hue to display for each of the color options. 👍 The problem is I don't know how else you would do this, as (to my knowledge) that is essentially the only way to colored text in a terminal. I know LSD has a config file you can use to specify color preferences (that is something we are working on too, currently you have to use ENV_VAR's for eza to change the colors of certain things). Hope this answered your question :) |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
The colors themselves are "hardcoded", meaning e.g. config type files are yellow, dirs are blue, etc... just using ansi escape codes from ansiterm that will obviously show up differently depending on the specific color scheme you have setup with your specific terminal that determines exactly which hue to display for each of the color options. 👍
The problem is I don't know how else you would do this, as (to my knowledge) that is essentially the only way to colored text in a terminal. I know LSD has a config file you can use to specify color preferences (that is something we are working on too, currently you have to use ENV_VAR's for eza to change the colors of certain things).
Hope this an…