From: Daniel Jensen <daniel@bigwalter.net>
Subject: Re: escape characters in emacs20 shell mode
Date: Thu, 14 Nov 2002 13:11:27 +0100 [thread overview]
Message-ID: <86vg304ahc.fsf@bigwalter.net> (raw)
In-Reply-To: mailman.1037212446.24847.help-gnu-emacs@gnu.org
Nimar Arora <nimar_arora@yahoo.com> writes:
> I'm running emacs20 on a Linux (Debian - Woody/stable)
> virtual console. When I enter an emacs shell and try
> to execute some command - like 'ls' - the output
> contains a whole of junk - [[0m etc. These look like
> the escape characters which can control the display
> attributes on some terminals. I don't understand why
> I'm getting these. I don't even have a .emacs file
> yet, so I haven't changed the default configuration.
Try putting this in your .emacs:
(require 'ansi-color)
(setq ansi-color-for-comint-mode t)
Or, use eshell instead.
> I tried, 'E-x shell-strip-ctrl-m' but to no avail. I
> also tried to lookup the info on Emacs shell mode to
> see if Debian has created some funky shell mode but
> couldn't find anything.
shell-strip-ctrl-m doesn't remove those color escape codes. It does
exactly what the name suggests, removes ^M's from output.
--
Daniel Jensen
: (format (concat "mailto:" "%s@%s.%s") "daniel" "bigwalter" "net")
next parent reply other threads:[~2002-11-14 12:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1037212446.24847.help-gnu-emacs@gnu.org>
2002-11-14 12:11 ` Daniel Jensen [this message]
2002-11-13 18:21 escape characters in emacs20 shell mode Nimar Arora
2002-11-13 19:17 ` Frédéric Bothamy
[not found] ` <mailman.1037219095.31729.help-gnu-emacs@gnu.org>
2002-11-16 16:30 ` Kai Großjohann
2002-11-16 17:03 ` Frédéric Bothamy
[not found] ` <m3y97tjtiy.fsf@kuntu.zangpo.org>
2002-11-17 19:22 ` Ivan Kanis
2002-11-18 7:34 ` Kai Großjohann
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86vg304ahc.fsf@bigwalter.net \
--to=daniel@bigwalter.net \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.