简体   繁体   中英

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. The IPython shell looks like this:

IPython 1.1.0 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details.

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

Whereas when I run ipython from bash, I get

IPython 1.1.0 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details.

In [1]:

Does this look like a charset issue in my PuTTY setup or should I try to find the issue within emacs/python-mode?

Looks like a broken ansi-color-filter

Please check if it happens also with current trunk from

https://launchpad.net/python-mode

Please follow up at:

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

Solution: add this line to ~/.emacs.d/init.el:

(ansi-color-for-comint-mode-on)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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