Skip to content
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

Improve legibility on light-background terminals #152

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Apr 19, 2024

  1. Improve legibility on light-background terminals

    This fixes the problem of light-gray text being rendered on a light
    background.
    
    Users can now choose a different Pygments style/theme using the
    PY_DEVTOOLS_STYLE environment variable.
    
    If PY_DEVTOOLS_STYLE is not set, we attempt auto-detection using the
    COLORFGBG environment variable, as is commonly done by some tools on
    Linux and macOS.
    
    - Dark-background terminals use the "vim" style, as before.
    - Light-background terminals now use the "sas" style.
    - If auto-detection fails, we use the "default" style, which is legible
      on most terminals.
    
    A list of available styles can be obtained by running:
    
        import pygments.styles
        list(pygments.styles.get_all_styles())
    dlitz committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    ca8aa40 View commit details
    Browse the repository at this point in the history