From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: weird shell in emacs Date: Thu, 9 Mar 2006 11:14:37 +0100 Message-ID: References: <1141861131.51s8qhmcaxa8@w10.webmail.telepac.pt> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1141899317 6197 80.91.229.2 (9 Mar 2006 10:15:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Mar 2006 10:15:17 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 09 11:15:15 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FHIAb-0006Sc-GC for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Mar 2006 11:14:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FHIAa-0003EH-SX for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Mar 2006 05:14:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FHIAN-0003DE-6m for help-gnu-emacs@gnu.org; Thu, 09 Mar 2006 05:14:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FHIAL-0003D2-BN for help-gnu-emacs@gnu.org; Thu, 09 Mar 2006 05:14:42 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FHIAL-0003Cz-8x for help-gnu-emacs@gnu.org; Thu, 09 Mar 2006 05:14:41 -0500 Original-Received: from [217.72.192.243] (helo=fmmailgate05.web.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FHIDN-0006l6-K6 for help-gnu-emacs@gnu.org; Thu, 09 Mar 2006 05:17:49 -0500 Original-Received: by fmmailgate05.web.de (8.12.10/8.12.10/webde Linux 0.7) with ESMTP id k29AEdHh019700; Thu, 9 Mar 2006 11:14:39 +0100 Original-Received: from [87.193.39.226] (helo=[192.168.1.2]) by smtp07.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.106 #94) id 1FHIAJ-0001rA-00; Thu, 09 Mar 2006 11:14:39 +0100 In-Reply-To: <1141861131.51s8qhmcaxa8@w10.webmail.telepac.pt> X-Image-Url: http://homepage.mac.com/sparifankal/.cv/thumbs/me.thumbnail Original-To: op132650c@mail.telepac.pt X-Mailer: Apple Mail (2.746.2) X-Sender: Peter_Dyballa@web.de X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:33669 Archived-At: 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 > bin/ dev/ home/ >  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 ) in your shell's rc file or in Emacs shell's rc file, i.e. .emacs_ 2.) set either in your shell's rc file or in Emacs shell's rc file, i.e. .emacs_ 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.