* Junk characters in Emacs shell buffer
@ 2003-05-04 1:59 Craig Jennings
2003-05-04 2:17 ` Johan Bockgård
0 siblings, 1 reply; 2+ messages in thread
From: Craig Jennings @ 2003-05-04 1:59 UTC (permalink / raw)
Hi All,
Hi All,
Whenever I switch to the shell in Emacs and list files, I see junk
characters before the file names. I'm a bit of a Unix newbie and am
guessing that this has to do with colors that Emacs isn't interpreting
correctly.
For instance:
[Sat May 3 06:39pm] MadPenguin : ~/projects/wordguess
$ ls
^[[0m^[[01;34mCVS^[[0m ^[[0mfileio.cpp^[[0m ^[[0mfileio.h^[[0m ^[[0mmakefile^[[0m ^[[0m#test.cpp#^[[0m ^[[0mtest.cpp^[[0m ^[[0mwordguess.cpp^[[0m ^[[0mwords.txt^[[0m
^[[m
[Sat May 3 06:39pm] MadPenguin : ~/projects/wordguess
$
Does anyone have any suggestions for how to get rid of the junk
characters?
Thanks,
-- Craig
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Junk characters in Emacs shell buffer
2003-05-04 1:59 Junk characters in Emacs shell buffer Craig Jennings
@ 2003-05-04 2:17 ` Johan Bockgård
0 siblings, 0 replies; 2+ messages in thread
From: Johan Bockgård @ 2003-05-04 2:17 UTC (permalink / raw)
Craig Jennings <cjennings@nospam.yahoo.com> writes:
> Whenever I switch to the shell in Emacs and list files, I see junk
> characters before the file names. I'm a bit of a Unix newbie and am
> guessing that this has to do with colors that Emacs isn't
> interpreting correctly.
Yes, I think so.
> [0m[01;34mCVS[0m [...]
Try adding
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
to your .emacs file.
--
The day Microsoft makes something that doesn't suck is probably the
day they start making vacuum cleaners. -- Ernst Jan Plugge
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-05-04 2:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-04 1:59 Junk characters in Emacs shell buffer Craig Jennings
2003-05-04 2:17 ` Johan Bockgård
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).