From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sergei" Newsgroups: gmane.emacs.help Subject: Re: help with M-x term Date: 14 Jul 2006 03:35:47 -0700 Organization: http://groups.google.com Message-ID: <1152873347.266110.78970@i42g2000cwa.googlegroups.com> References: <1152734523.744338.154800@m79g2000cwm.googlegroups.com> <877j2gycyl.fsf@tiger.rapttech.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1152873637 26810 80.91.229.2 (14 Jul 2006 10:40:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 Jul 2006 10:40:37 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 14 12:40:35 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 1G1L61-0005XE-5C for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Jul 2006 12:40:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G1L60-0003KJ-Gu for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Jul 2006 06:40:32 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!i42g2000cwa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-NNTP-Posting-Host: 192.55.52.4 Original-X-Trace: posting.google.com 1152873352 1625 127.0.0.1 (14 Jul 2006 10:35:52 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 14 Jul 2006 10:35:52 +0000 (UTC) In-Reply-To: <877j2gycyl.fsf@tiger.rapttech.com.au> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040803,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 fmfwpr04.fm.intel.com:911 (squid/2.5.STABLE12) Complaints-To: groups-abuse@google.com Injection-Info: i42g2000cwa.googlegroups.com; posting-host=192.55.52.4; posting-account=iSrvCw0AAACmDq0mlo5d6a2lfxRMcrI2 Original-Xref: shelby.stanford.edu gnu.emacs.help:140333 Original-To: help-gnu-emacs@gnu.org 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:35958 Archived-At: --- Tim X: ... > The difference in 'formatting' you have observed is because M-x shell > doesn't understand ANSI escape codes for colour. When you use the ls > command and have it configured to display the output using different > colours for different file types, it does this by using andsi colour > escape sequences. However, M-x shell does not understand these "out of > the box". > There are at least two solutions - (THREE suggestions snipped :) [...] I've put setting LS_COLORS under a condition in my .bashrc : if [ "$EMACS" != "t" ] then PS1="$PS1_long" if [ "$OSVAR" = "Linux" ]; then LS_COLORS='...[set it to your liking] ...' export LS_COLORS else # Darwin: export LSCOLORS="DxfxcxdxbxegedabagDxDx" fi else export PS1='\t \W \!% ' fi -- Sergei