From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Davison Newsgroups: gmane.emacs.help Subject: Re: emacs and ls with cygwin Date: Tue, 13 Apr 2010 01:43:25 -0400 Message-ID: <87aat7zz42.fsf@stats.ox.ac.uk> References: <582494.51170.qm@web82108.mail.mud.yahoo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1271137459 28263 80.91.229.12 (13 Apr 2010 05:44:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 13 Apr 2010 05:44:19 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Oren Cheyette Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 13 07:44:18 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O1Yv3-00056X-L9 for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Apr 2010 07:44:17 +0200 Original-Received: from localhost ([127.0.0.1]:56795 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1Yv2-0002EJ-6d for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Apr 2010 01:44:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O1YuO-0002E5-21 for help-gnu-emacs@gnu.org; Tue, 13 Apr 2010 01:43:36 -0400 Original-Received: from [140.186.70.92] (port=35052 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1YuM-0002Dk-7I for help-gnu-emacs@gnu.org; Tue, 13 Apr 2010 01:43:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O1YuK-0003yx-KA for help-gnu-emacs@gnu.org; Tue, 13 Apr 2010 01:43:34 -0400 Original-Received: from markov.stats.ox.ac.uk ([163.1.210.1]:50279) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1YuK-0003yX-Co for help-gnu-emacs@gnu.org; Tue, 13 Apr 2010 01:43:32 -0400 Original-Received: from blackcap.stats.ox.ac.uk (blackcap.stats [163.1.210.5]) by markov.stats.ox.ac.uk (8.13.6/8.13.6) with ESMTP id o3D5hRMX020423; Tue, 13 Apr 2010 06:43:27 +0100 (BST) Original-Received: by blackcap.stats.ox.ac.uk (Postfix, from userid 5158) id B11AE3201D; Tue, 13 Apr 2010 06:43:27 +0100 (BST) In-Reply-To: <582494.51170.qm@web82108.mail.mud.yahoo.com> (Oren Cheyette's message of "Mon, 12 Apr 2010 16:33:29 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Solaris 8 (1) 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:72663 Archived-At: Oren Cheyette writes: > I'm using GNU Emacs 23.1.50.1 on Win32 (XP) with cygwin tcsh as the shell > invoked by the "shell" command. I have this setup on several computers bought > and set up at different times, and most recently I'm finding that the command > "ls" produces garbage output full of control characters, like this: > [0m[01;34mMy Documents[0m > [01;34mNotes[0m > [01;32mTestingrecycle.doc[0m > [01;34mWINDOWS[0m > > I see nothing in any of the faq's about how to deal with this. Suggestions? Hi Oren, The control characters are to do with creating coloured output of ls. If you create a file in your home directory containing shell commands called ~/.emacs_tcsh, then emacs shell will execute those commands when it sets up the shell environment. So you want to put commands in there which ensure that ls uses the --color=never option (or --color=none, or whatever it is on your system). I don't use tcsh, but something like alias ls 'ls --color=never' Also note that people sometimes put special control characters in their prompts, so you may also want to set the value of $PS1 and $PS2 in ~/.emacs_tcsh. Dan