unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: phundamental unaudio <unaudio@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: weird emacs shell behavior
Date: Fri, 17 Aug 2007 19:43:55 +0200	[thread overview]
Message-ID: <9265C60A-8E60-4DB8-A764-F1D438D37BE1@Web.DE> (raw)
In-Reply-To: <ac3bc28e0708170954k5949f351o146761a411cd9e3d@mail.gmail.com>


Am 17.08.2007 um 18:54 schrieb phundamental unaudio:

> when i issue alt-x shell the prompt looks weird like this:
> ^[[32;1mvytas@clt-84-32-234-17:~>^[[0m
> with those unnesecery  characters in the beginning and the end. im  
> using
> 22.1.1
> could anyone tell me what the problem could be?

Your bash prompt is creating ANSI Esc sequences to set colours or  
effects.

In GNU Emacs 22 you can invoke

	ansi-color-for-comint-mode-on

to make *shell* buffer interpret certain ANSI Esc sequences (you can  
also put it into an init file). You can use a file ~/.emacs_<shell  
interpreter's name> to adjust some settings for *shell* buffer. You  
would need to use that shell interpreter's syntax. For example, if  
your login shell is bash and you put

	PS1="$ "

into ~/.emacs_bash than you'll have a much shorter and monochrome  
prompt ...

--
Greetings

   Pete

Increase the size of your bike by at least *five* inches!

  reply	other threads:[~2007-08-17 17:43 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-17 16:54 weird emacs shell behavior phundamental unaudio
2007-08-17 17:43 ` Peter Dyballa [this message]
     [not found] <mailman.4916.1187369678.32220.help-gnu-emacs@gnu.org>
2007-08-17 17:36 ` Joel J. Adamson
2007-08-17 18:19   ` Emilio Lopes
2007-08-17 18:26     ` Joel J. Adamson
2007-08-17 18:38       ` Emilio Lopes
2007-08-17 19:40         ` Joel J. Adamson
2007-08-17 19:34     ` Tassilo Horn
2007-08-17 21:09       ` Peter Dyballa
     [not found]       ` <mailman.4930.1187384971.32220.help-gnu-emacs@gnu.org>
2007-08-18 14:36         ` Tassilo Horn
2007-08-18 16:11           ` Peter Dyballa
     [not found]           ` <mailman.4951.1187453499.32220.help-gnu-emacs@gnu.org>
2007-08-18 16:30             ` Tassilo Horn

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=9265C60A-8E60-4DB8-A764-F1D438D37BE1@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=unaudio@gmail.com \
    /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).