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: 18 Jul 2006 00:01:31 -0700 Organization: http://groups.google.com Message-ID: <1153206091.868784.104930@p79g2000cwp.googlegroups.com> References: <1152734523.744338.154800@m79g2000cwm.googlegroups.com> <877j2gycyl.fsf@tiger.rapttech.com.au> <1152873347.266110.78970@i42g2000cwa.googlegroups.com> <873bd3yane.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 1153208564 15134 80.91.229.2 (18 Jul 2006 07:42:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 Jul 2006 07:42:44 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 18 09:42:44 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 1G2kE4-000167-A8 for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Jul 2006 09:42:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G2kE3-0003aB-C9 for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Jul 2006 03:42:39 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!p79g2000cwp.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: 192.55.52.4 Original-X-Trace: posting.google.com 1153206095 15798 127.0.0.1 (18 Jul 2006 07:01:35 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 18 Jul 2006 07:01:35 +0000 (UTC) In-Reply-To: <873bd3yane.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: p79g2000cwp.googlegroups.com; posting-host=192.55.52.4; posting-account=iSrvCw0AAACmDq0mlo5d6a2lfxRMcrI2 Original-Xref: shelby.stanford.edu gnu.emacs.help:140410 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:36039 Archived-At: Tim X wrote: [...] > Yes, I've seen solutions of this style before. Its certainly one > solution. In fact, under Debian, the default .bashrc has > # enable color support of ls and also add handy aliases > if [ "$TERM" != "dumb" ]; then > eval `dircolors -b` > alias ls='ls --color=auto' > alias dir='ls --color=auto --format=vertical' > alias vdir='ls --color=auto --format=longx > fi > Which means ls colours are not used within M-x shell as it sets TERM > to dumb. This approach is I think more general in that it will > prevent ls colours from being used in any dumb terminal, not just > emacs' shell. Maybe that's true. But actually there are more colored thing than the directories. So far I was unable to solve the color problem with the perl debugger :( > I also note you are using the variable $OSVAR to detect if running > under Linux, but I don't think this is a "standard' variable > (i.e. it is distribution/local/user specific). I only mention it in > case someone uses your code snippet and is wondering why colour ls > is not behaving as expected. You are right, I set OSVAR myself on the basis of uname inquiry. -- Sergei