有没有一种方便地修改光标下的font-face
的方法?
例如,下面蓝色的文本很难阅读:
以上是输出结果。
ipython --color "Linux"
在Emacs 24.1
中使用tango-dark
主题的ansi-term
上运行,即(load-theme 'tango-dark t)
如果我在上面的图像(在此处描述:在Emacs中获取光标下的字体)上运行what-cursor-position
,我会得到:
position: 30385 of 30477 (100%), column: 22
character: / (displayed as /) (codepoint 47, #o57, #x2f)
preferred charset: ascii (ASCII (ISO646 IRV))
code point in charset: 0x2F
syntax: _ which means: symbol
category: .:Base, a:ASCII, l:Latin, r:Roman
buffer code: #x2F
file code: #x2F (encoded by coding system nil)
display: by this font (glyph code)
xft:-unknown-DejaVu LGC Sans Mono-bold-normal-normal-*-11-*-*-*-m-0-iso10646-1 (#x12)
Character code properties: customize what to show
name: SOLIDUS
old-name: SLASH
general-category: Po (Punctuation, Other)
decomposition: (47) ('/')
There are text properties here:
face (:weight bold :foreground "blue2" :background unspecified)
我该如何修改这个字体?
如果你想知道,IPython 只支持三种颜色集:
Nocolor
Linux
(我在上面使用的那个)LightBG
(适用于浅色背景)
更新:
我认为 font-lock-string-face
是一个不同的面孔:
事实上,我认为这不是 IPython 用来表示字符串的面孔,而是 python-mode
在带有常规 python 代码的缓冲区中表示字符串的面孔(在 tango-dark
中)--见下图--。
ipython.el
,但没有找到任何方法来实现这一点 :\ - Jesus RamosTERM=xterm-mono
来禁用 ANSI 颜色输出。 - Jesus Ramos