简体   繁体   English

emacs 23上的丑陋ipython提示

[英]Ugly ipython prompt on emacs 23

I have a PuTTY terminal running emacs 23. I just installed python-mode.el-6.1.2 and pinard-Pymacs-5989046. 我有一个运行emacs 23的PuTTY终端。我刚刚安装了python-mode.el-6.1.2和pinard-Pymacs-5989046。 The IPython shell looks like this: IPython shell看起来像这样:

IPython 1.1.0 -- An enhanced Interactive Python. IPython 1.1.0-增强的交互式Python ? -> Introduction and overview of IPython's features. -> IPython功能的介绍和概述。 %quickref -> Quick reference. %quickref->快速参考。 help -> Python's own help system. help-> Python自己的帮助系统。 object? 宾语? -> Details about 'object', use 'object??' ->有关“对象”的详细信息,请使用“对象?” for extra details. 有关更多详细信息。

^[[0;32mIn [^[[1;32m2^[[0;32m]: ^[[0m ^ [[0; 32mIn [^ [[1; 32m2 ^ [[0; 32m]:^ [[0m

Whereas when I run ipython from bash, I get 而当我从bash运行ipython时,我得到了

IPython 1.1.0 -- An enhanced Interactive Python. IPython 1.1.0-增强的交互式Python ? -> Introduction and overview of IPython's features. -> IPython功能的介绍和概述。 %quickref -> Quick reference. %quickref->快速参考。 help -> Python's own help system. help-> Python自己的帮助系统。 object? 宾语? -> Details about 'object', use 'object??' ->有关“对象”的详细信息,请使用“对象?” for extra details. 有关更多详细信息。

In [1]: 在[1]中:

Does this look like a charset issue in my PuTTY setup or should I try to find the issue within emacs/python-mode? 这看起来像PuTTY设置中的字符集问题,还是应该尝试在emacs / python-mode中找到问题?

Looks like a broken ansi-color-filter 看起来像是损坏的ansi彩色滤光片

Please check if it happens also with current trunk from 请检查当前中继是否也发生这种情况

https://launchpad.net/python-mode https://launchpad.net/python-mode

Please follow up at: 请跟进:

https://bugs.launchpad.net/python-mode/+bug/1238481 https://bugs.launchpad.net/python-mode/+bug/1238481

Solution: add this line to ~/.emacs.d/init.el: 解决方案:将此行添加到〜/ .emacs.d / init.el:

(ansi-color-for-comint-mode-on) (用于混合模式的ansi颜色)

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

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