Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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 it’s colour output and have it give just plain black (on Arch Linux)?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

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.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading