You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sphinx displays error messages with a dark red font that some with poor eyesight have trouble reading. It would be great to have a configuration option that would change this to another color (e.g., bright red) to provide higher contrast.
The gcc compiler provides some options for controlling color. From
https://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Message-Formatting-Options.html
:
The colors are defined by the environment variable GCC_COLORS. Its value is
a colon-separated list of capabilities and Select Graphic Rendition (SGR)
substrings. SGR commands are interpreted by the terminal or terminal
emulator. (See the section in the documentation of your text terminal for
permitted values and their meanings as character attributes.) These
substring values are integers in decimal representation and can be
concatenated with semicolons. Common values to concatenate include ‘1’ for
bold, ‘4’ for underline, ‘5’ for blink, ‘7’ for inverse, ‘39’ for default
foreground color, ‘30’ to ‘37’ for foreground colors, ‘90’ to ‘97’ for
16-color mode foreground colors, ‘38;5;0’ to ‘38;5;255’ for 88-color and
256-color modes foreground colors, ‘49’ for default background color, ‘40’
to ‘47’ for background colors, ‘100’ to ‘107’ for 16-color mode background
colors, and ‘48;5;0’ to ‘48;5;255’ for 88-color and 256-color modes
background colors.
The default GCC_COLORS is
error=01;31:warning=01;35:note=01;36:range1=32:range2=34:locus=01:\
quote=01:fixit-insert=32:fixit-delete=31:\
diff-filename=01:diff-hunk=32:diff-delete=31:diff-insert=32:\
type-diff=01;32
Would it be possible to do something similar in Sphinx?
Thanks!
Activity
tk0miya commentedon Jan 27, 2019
+1; Reasonable.
Do you know well-known options in other softwares for such purpose. I'd like to follow them.
Phillip-M-Feldman commentedon Jan 27, 2019
tk0miya commentedon Jan 27, 2019
Thank you for the information. This is what I needed.
I'll try to implement this in nearly major release!
26 remaining items