[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to fix IPython prompt in emacs shell mode?
From: |
Pascal J. Bourguignon |
Subject: |
Re: how to fix IPython prompt in emacs shell mode? |
Date: |
Wed, 08 Dec 2010 15:30:21 -0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Tom Roche <Tom_Roche@pobox.com> writes:
> When, in emacs, I do
>
> M-x shell
> ipython
>
> everything seems to work, except that the prompt is
>
> ^[[0;32mIn [^[[1;32m1^[[0;32m]: ^[[0m
>
> How to get the normal ipython prompt, or close facsimile? Or is there
> a better way to run ipython interactively in an emacs buffer? FWIW,
> I've got
>
> Ubuntu 10.04.1 LTS, GNOME, 64-bit
> GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.0)
> ipython 0.10 from ubuntu package
> python-mode 5.1.0 from https://launchpad.net/python-mode/
>
> TIA, Tom Roche <Tom_Roche@pobox.com>
These are ansi escape codes to set color. You can tell the emacs shell
to interpret them with M-x ansi-color-for-comint-mode-on RET
You may add it on shell-mode-hook:
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
Notice that this works for any comint based mode.
--
__Pascal Bourguignon__ http://www.informatimago.com/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: how to fix IPython prompt in emacs shell mode?,
Pascal J. Bourguignon <=