简体   繁体   English

Emacs ipython Shell错误消息前景色设置

[英]Emacs ipython shell error message foreground color setting

In my python shell with white background it looks like this: 在我的白色背景的python外壳中,它看起来像这样:

白色背景上的白色文字

As you can see, when there is an error, it's white text on white background. 如您所见,出现错误时,它是白色背景上的白色文本。 In order to see them, I have to highlight the text. 为了看到它们,我必须突出显示文本。 I haven't got any luck finding out what face controls those colors. 我没有运气找出什么面孔可以控制这些颜色。 Anyone has any idea? 有人知道吗?

Thanks 谢谢

in ~\\.ipython\\ipythonrc there is this section (About a 1/4 away from the top) ~\\.ipython\\ipythonrc有此部分(距离顶部约1/4)

# colors - Coloring option for prompts and traceback printouts.

# Currently available schemes: NoColor, Linux, LightBG.

# This option allows coloring the prompts and traceback printouts. This
# requires a terminal which can properly handle color escape sequences. If you
# are having problems with this, use the NoColor scheme (uses no color escapes
# at all).

# The Linux option works well in linux console type environments: dark
# background with light fonts.

# LightBG is similar to Linux but swaps dark/light colors to be more readable
# in light background terminals.

# keep uncommented only the one you want:
colors Linux
#colors LightBG
#colors NoColor

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM