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

时间:2011-04-13 01:30:32

标签: python emacs foreground

在我的白色背景的python shell中,它看起来像这样:

white text on white background

如您所见,当出现错误时,它是白色背景上的白色文字。为了看到它们,我必须强调文本。我没有运气找到控制这些颜色的脸。任何人都有任何想法?

由于

1 个答案:

答案 0 :(得分:1)

~\.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