Skip to content

Detect default colorscheme (dark/light) #26084

@timokau

Description

@timokau

The default sage colorscheme is pretty much unreadable on a black background. I can fix this by putting %colors Linux in init.sage, but every user with a dark terminal background has to figure that out for themselves.

We should be automatically setting that value. Unfortunately, figuring out the terminal background reliably is no easy task. Some terminals set COLORFGBG, others react to xterm queries. Resources:

CC: @kwankyu @jhpalmieri

Component: user interface

Author: Matthias Koeppe

Branch/Commit: 49259be

Reviewer: John Palmieri

Issue created by migration from https://trac.sagemath.org/ticket/26084

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions