all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* On prompt in shell mode
@ 2008-08-12 14:05 Angelo Graziosi
  2008-08-12 14:10 ` adg
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Angelo Graziosi @ 2008-08-12 14:05 UTC (permalink / raw)
  To: emacs-devel

The following regards Emacs (trunk) both on Linux and Cygwin.

When I do: M-x shell, the prompt has garbage:

^[]0;~/downloads/cygwinports^G
^[[32mangelo@host ^[[33m~/downloads/cygwinports^[[0m
$

being

echo PS1
\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\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='\n\u@\h 
\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





^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2008-08-14 13:21 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-12 14:05 On prompt in shell mode Angelo Graziosi
2008-08-12 14:10 ` adg
2008-08-12 14:17   ` Angelo Graziosi
2008-08-12 18:19 ` Chong Yidong
2008-08-13 10:03   ` Angelo Graziosi
2008-08-12 19:46 ` Stefan Monnier
2008-08-12 20:49   ` Angelo Graziosi
2008-08-13 20:42     ` Stefan Monnier
2008-08-13 21:55       ` Angelo Graziosi
2008-08-13 22:37         ` Stefan Monnier
2008-08-13 23:02           ` Angelo Graziosi
2008-08-13 23:17             ` David Hansen
2008-08-13 23:55             ` Stefan Monnier
2008-08-14  1:24               ` Angelo Graziosi
2008-08-14  8:50                 ` Angelo Graziosi
2008-08-14 10:22                   ` David Hansen
2008-08-14 13:21                   ` Angelo Graziosi
2008-08-13  6:26 ` Richard M. Stallman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.