-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Default REPL output is difficult to read on light background #28690
Comments
For reference, the following env vars can be set to customize the colors, e.g.:
|
Yes, I'm doing this. There are two problems: (1) It's not the default, and (2) this doesn't affect other parts of Julia, e.g. the package manager which still uses light grey for its status output. I'm thinking that a function |
Yes, having readable pkg status would be great. Eventually forcing everything to use just the terminals foreground color (effectively monochrome) might be the simplest temporary solution to do ? |
You could always start julia with |
Ah, sorry for the noise then ! |
While the PR to autodetect doesn't seem like it will work well, so we haven't merged it in a couple years, I think the |
I change the default to
But it does not seem to have any effect. |
Adding some suggestions to the discussion here, after I went through the same experience:
|
For reference, here's a quick snippet to get all the "named" colors: julia> for key in keys(Base.text_colors)
if isa(key, Symbol)
println(key)
end
end The names match the base 16 unix/X11/terminal/(?) color names, so you can use a command like (Linux):
and compare the colors to see which ones you want to change. Preview changes by reassigning to the color dict, e.g.:
When you're happy put the ENV declarations in the config file (see prev comments). So this kind of solves the last bullet point in my other comment. |
#49586 gave us some new tools to help with this, but I don't think we can consider it quite solved yet. |
I'm using Julia on macOS, and my terminals have a light (almost white) background. The default color scheme of the REPL is difficult to read there, as e.g. yellow (for warnings) is almost unreadable.
This page has some hints for how to automatically detect whether the terminal background is light or dark.
The text was updated successfully, but these errors were encountered: