all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
Cc: help-gnu-emacs@gnu.org
Subject: Re: weird shell in emacs
Date: Thu, 9 Mar 2006 11:14:37 +0100	[thread overview]
Message-ID: <E28C7166-D6AE-4971-BB37-A782FDF263A1@Web.DE> (raw)
In-Reply-To: <1141861131.51s8qhmcaxa8@w10.webmail.telepac.pt>


Am 09.03.2006 um 00:38 schrieb op132650c@mail.telepac.pt:

> What can i do to get a more understanding shell?
>
> [xeon@localhost /]$ ls
> ^[[0m^[[01;34mbin^[[0m/   ^[[01;34mdev^[[0m/  ^[[01;34mhome^[[0m/
> ^[

As you see ls puts ANSI Esc sequences around the entries. If you look  
closer they are colouring the entries. You have approximately four  
ways to correct it:

	1.) use an ls alias in Emacs' shell that does no colouring (man ls,  
man <shell's name>) in your shell's rc file or in Emacs shell's rc  
file, i.e. .emacs_<shell name>
	2.) set either in your shell's rc file or in Emacs shell's rc file,  
i.e. .emacs_<shell name> an environment variable that switches off  
the colouring (for example 'unsetenv CLICOLOR' for (t)csh like shells)
	3.) set in .emacs something like (it seems to depend on some minimal  
Emacs version, 21.4?):

		(add-hook 'shell-mode-hook (lambda ()
		       (ansi-color-for-comint-mode-on)))

	4.) use term instead of shell

--
Greetings

   Pete

Time is an illusion. Lunchtime, doubly so.

      reply	other threads:[~2006-03-09 10:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-08 23:38 weird shell in emacs op132650c
2006-03-09 10:14 ` Peter Dyballa [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E28C7166-D6AE-4971-BB37-A782FDF263A1@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.
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.