默认情况下,bpython有一个非常好的蓝色主题,但它与浅色背景不太匹配。我如何禁用它的颜色输出并让它只显示纯黑色(打开 Arch Linux )?
您可以创建 theme 只使用黑色作为输出颜色。这可能看起来像:
[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
这是基于 default theme ,将所有颜色替换为 k (对于普通黑色)或 K (表示黑体)。
k
K
将此保存在 ~/.config/bpython/light.theme 然后设置 color_scheme = light 在里面 ~/.config/bpython/config 。
~/.config/bpython/light.theme
color_scheme = light
~/.config/bpython/config