JuliaLang / julia

The Julia Programming Language
https://julialang.org/
MIT License
45.44k stars 5.46k forks source link

help REPL: syntax highlighting makes some words invisible #55196

Open nsajko opened 2 months ago

nsajko commented 2 months ago

In the help REPL some words that are supposed to appear within syntax-highlighted parts will be completely invisible.

This depends on the configuration of the terminal: in xterm, which is configured for black-text-on-a-white-background by default, I experience the bug on nightly for some time now. If I configure xterm for white-text-on-a-black-background, though, the words appear fine.

For example, here, in sqrt(x), the x is not visible:

a

Compare with:

b

Interestingly, the x itself doesn't actually have syntax highlighting when visible, but the entire sqrt(x) expression does. Perhaps some kind of escaping issue?

aplavin commented 1 month ago

Just wanted to submit the exact same issue right now :) Presumably, you are also talking about nightly, right? I don't see any color issues on 1.11 and earlier. This is how docstrings look for me in nightly: image While technically everything is visible, reading the light text is quite difficult in any imperfect lighting conditions.