0

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)?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
MrSomeone
  • 71
  • 1
  • 11

1 Answers1

2

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.

larsks
  • 277,717
  • 41
  • 399
  • 399
  • @xpusostomos this is an answer...it's not tagged at all! Did you mean to leave that comment on the question? – larsks Jun 04 '23 at 11:18