From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Joerg Schuster Newsgroups: gmane.emacs.help Subject: color ls in shell or eshell or ... Date: 19 Sep 2003 10:24:05 +0200 Organization: Department of Computer Sciences, University of Munich Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1063960301 28211 80.91.224.253 (19 Sep 2003 08:31:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 Sep 2003 08:31:41 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 19 10:31:39 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A0Gfz-0002Gj-00 for ; Fri, 19 Sep 2003 10:31:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A0Gfe-0001De-8a for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Sep 2003 04:31:18 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!irazu.switch.ch!switch.ch!news.belwue.de!informatik.tu-muenchen.de!lmu.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 51 Original-NNTP-Posting-Host: pinatubo.cis.uni-muenchen.de Original-X-Trace: minotaurus.cip.informatik.uni-muenchen.de 1063959845 30444 129.187.148.50 (19 Sep 2003 08:24:05 GMT) Original-X-Complaints-To: usenet@informatik.uni-muenchen.de Original-NNTP-Posting-Date: Fri, 19 Sep 2003 08:24:05 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:116726 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:12648 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:12648 Hello, I would like to have a color ls in shell mode or some other (equivalent) mode. I found a 1999 talk between "pJ" and John Wiegley: pJ> I have my linux system setup to use color coded output from "ls". pJ> WHen I start a shell in emacs, and do ls, the output is filled up pJ> with garbage (the color coding syntax, I imagine.). If you know of pJ> a way to fix it, let me know! jw> There is no easy way to fix this in shell mode. There are, however, jw> two things you can do to get color ls displayed in Emacs. jw> #1 Use term.el. This is very easy to do. jw> Just type `M-x ansi-term`, RET, RET. You will now be in a shell jw> buffer that support most of the ANSI escape sequences. It can jw> even be used to run vi from within Emacs. jw> #2 Use Eshell instead of shell-mode. It has it`s own implementation jw> of ls which does full coloring. It is a bit more difficult to jw> setup than running ansi-term, but it is no more difficult to use jw> than shell-mode. My problem is: 1. M-x term causes my emacs to crash. (Btw, it is the only way I know to cause emacs to crash.) 2. There is an eshell manual (http://www.emacswiki.org/johnw/eshell.html), but I couldn't deduce from it how to configure eshell such that it is sufficiently like other shells. I just cannot run most of the programs in eshell. One example: ~/cl1/skript $ pdflatex ./skript.tex This is pdfTeX, Version 3.14159-1.00b-pretest-20020211 (Web2C 7.3.7x) (./skript.tex Error: pdftex (file pdftex.cfg): cannot open config file ~/cl1/skript $ Maybe eshell doesn't know the right paths? I would prefer eshell to other solutions. Can anybody help? Thanks, Jörg