[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: On prompt in shell mode
From: |
Stefan Monnier |
Subject: |
Re: On prompt in shell mode |
Date: |
Tue, 12 Aug 2008 15:46:27 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
> 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\$
Doesn't look like garbage to me: it looks like the exact (garbage) codes
specified in your PS1. After all \e is ^[ and \a is ^G (IIRC).
You should be careful to choose the escape sequences in your PS1
according to the escape sequences accepted by the terminal emulator in
which the shell is running (which is reflected in the $TERM envvar).
Stefan
- On prompt in shell mode, Angelo Graziosi, 2008/08/12
- Re: On prompt in shell mode, adg, 2008/08/12
- Re: On prompt in shell mode, Chong Yidong, 2008/08/12
- Re: On prompt in shell mode,
Stefan Monnier <=
- Re: On prompt in shell mode, Angelo Graziosi, 2008/08/12
- Re: On prompt in shell mode, Stefan Monnier, 2008/08/13
- Re: On prompt in shell mode, Angelo Graziosi, 2008/08/13
- Re: On prompt in shell mode, Stefan Monnier, 2008/08/13
- Re: On prompt in shell mode, Angelo Graziosi, 2008/08/13
- Re: On prompt in shell mode, David Hansen, 2008/08/13
- Re: On prompt in shell mode, Stefan Monnier, 2008/08/13
- Re: On prompt in shell mode, Angelo Graziosi, 2008/08/13
- Re: On prompt in shell mode, Angelo Graziosi, 2008/08/14
- Re: On prompt in shell mode, David Hansen, 2008/08/14