Search code examples
shellarchlinuxbpython

How do I disable bpython colored output?


bpython by default has a really nice blue theme, but it doesn't go well with light backgrounds. How can I disable its colour output and have it give just plain black (on Arch Linux)?


Solution

  • You could create a theme that only uses black as an output color. That might look like:

    [syntax]
    keyword = k
    name = k
    comment = k
    string = k
    error = k
    number = K
    operator = K
    punctuation = k
    token = K
    paren = K
    
    [interface]
    background = d
    output = k
    main = k
    prompt = k
    prompt_more = k
    right_arrow_suggestion = K
    

    This is based on the default theme, replacing all the colors with k (for normal black) or K (for bold black).

    Save this in ~/.config/bpython/light.theme and then set color_scheme = light in ~/.config/bpython/config.