From: Dan Davison <davison@stats.ox.ac.uk>
To: Oren Cheyette <ocheyette@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: emacs and ls with cygwin
Date: Tue, 13 Apr 2010 01:43:25 -0400 [thread overview]
Message-ID: <87aat7zz42.fsf@stats.ox.ac.uk> (raw)
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)")
Oren Cheyette <ocheyette@gmail.com> 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
next prev parent reply other threads:[~2010-04-13 5:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-12 23:33 emacs and ls with cygwin Oren Cheyette
2010-04-13 5:43 ` Dan Davison [this message]
2010-04-13 8:46 ` Peter Dyballa
2010-04-13 8:41 ` Peter Dyballa
2010-04-13 9:00 ` Thierry Volpiatto
2010-04-23 8:28 ` Paulo J. Matos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87aat7zz42.fsf@stats.ox.ac.uk \
--to=davison@stats.ox.ac.uk \
--cc=help-gnu-emacs@gnu.org \
--cc=ocheyette@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).