From: Peter Dyballa <Peter_Dyballa@Web.DE>
Cc: help-gnu-emacs@gnu.org
Subject: Re: chdir output incorrect for prompt
Date: Tue, 25 Apr 2006 18:01:37 +0200 [thread overview]
Message-ID: <20F041F3-309D-4109-B7A5-61189FA43FF4@Web.DE> (raw)
In-Reply-To: <e2lbmd$m3r$1@foggy.unx.sas.com>
Am 25.04.2006 um 16:28 schrieb Jim:
> I have export PS1='($PWD)> ' for my prompt on linux and it works
> fine in
> my shell displaying
> the path after a 'cd' command. However in emacs after a 'cd'
> command the
> output has junk
> in the path: ^[]1:Test^G^[]2;Test ???@cc99^G^[]3:/r/...
Emacs' shell buffer does not expect these ANSI codes. Maybe this code
for your .emacs corrects the shell buffer's behaviour:
(add-hook 'shell-mode-hook (lambda ()
; (make-local-variable 'ansi-color-for-comint-mode)
(ansi-color-for-comint-mode-on)))
If this fails you can set in ~/.emacs_bash a different value for PS1
in Emacs' shell buffer, one that does not generate ANSI codes.
--
Greetings
Pete
A lot of us are working harder than we want, at things we don't like to
do. Why? ...In order to afford the sort of existence we don't care
to live.
-- Bradford Angier
next prev parent reply other threads:[~2006-04-25 16:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-25 14:28 chdir output incorrect for prompt Jim
2006-04-25 16:01 ` Peter Dyballa [this message]
2006-04-25 22:11 ` Tim X
-- strict thread matches above, loose matches on Subject: below --
2006-04-25 16:58 James Poli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20F041F3-309D-4109-B7A5-61189FA43FF4@Web.DE \
--to=peter_dyballa@web.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).