[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
On prompt in shell mode
From: |
Angelo Graziosi |
Subject: |
On prompt in shell mode |
Date: |
Tue, 12 Aug 2008 16:05:42 +0200 |
User-agent: |
Thunderbird 2.0.0.16 (Windows/20080708) |
The following regards Emacs (trunk) both on Linux and Cygwin.
When I do: M-x shell, the prompt has garbage:
^[]0;~/downloads/cygwinports^G
address@hidden ^[[33m~/downloads/cygwinports^[[0m
$
being
echo PS1
\[\e]0;address@hidden \[\e[33m\]\w\[\e[0m\]\n\$
I have found [1], for which 'ansi-color-for-comint-mode-on' should fix
the thing. I have also tried defining PS1='PROMPT>' or PS1='address@hidden
\w\n$ ' in .emacs_bash, but in all cases there is still garbage after
M-x shell.
So I would ask if you have a better solutions.
Thanks,
Angelo.
---
[1] http://lists.gnu.org/archive/html/help-gnu-emacs/2007-07/msg00796.html
- On prompt in shell mode,
Angelo Graziosi <=