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

Automatically detect whether the terminal background is a light color #28739

Closed
wants to merge 4 commits into from

Commits on Nov 28, 2018

  1. Allow both "light" and "dark" text colors

    Introduce a distinction between light and dark text colors. Use different default colors in both cases.
    
    The text color scheme can be set via a command line option (--color=[light | dark]), or Julia can try to detect the terminal's background color. In this case, it roughly follows vim's approach:
    1. Look for COLORFGBG environment variable
    2. Use an ANSI escape sequence to query the terminal for the background color
    3. Make an educated guess from the terminal name
    
    Tested with iTerm2, Terminal, xterm on MacOS, Linux.
    eschnett committed Nov 28, 2018
    Configuration menu
    Copy the full SHA
    afbbff4 View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2018

  1. Invert ANSI colors

    eschnett committed Dec 10, 2018
    Configuration menu
    Copy the full SHA
    b240ed7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b299538 View commit details
    Browse the repository at this point in the history

Commits on Dec 29, 2018

  1. Experiment with colours

    eschnett committed Dec 29, 2018
    Configuration menu
    Copy the full SHA
    1a8097d View commit details
    Browse the repository at this point in the history