Gentoo Archives: gentoo-user

From: David Relson <relson@×××××××××××××.com>
To: gentoo-user@l.g.o
Cc: reader@×××××××.com
Subject: Re: [gentoo-user] Re: emacs shell color question
Date: Tue, 26 Dec 2006 12:39:39
Message-Id: 20061226073521.0a6a6bf4@osage.osagesoftware.com
In Reply to: [gentoo-user] Re: emacs shell color question by reader@newsguy.com
1 On Mon, 25 Dec 2006 21:54:01 -0600
2 reader@×××××××.com wrote:
3
4 > David Relson <relson@×××××××××××××.com> writes:
5 >
6 > > On Mon, 25 Dec 2006 01:00:31 -0600
7 > > reader@×××××××.com wrote:
8 > >
9 > >> David Relson <relson@×××××××××××××.com> writes:
10 > >>
11 > >> > G'day,
12 > >> >
13 > >> > I habitually run emacs shell sessions. When I forget the --color
14 > >> > options, for example for the ls and emerge commands, the shell
15 > >> > session displays the ascii escape sequences which is pretty ugly.
16 > >> > Is there an option for telling emacs to handle escape sequences?
17 > >>
18 > >> Does the problem persist if you use `eshell' instead of shell?
19 > >> (M-x eshell <RET>)
20 >
21 > There is an ansi mode that is made to hand escape sequences but that
22 > should not be necessary. All recent emacs just work.
23 >
24 > That makes me think it is something in your environment.
25 >
26 > To get expert help I suggest you post on gnu.emacs.help Or on
27 > gmane.emacs.help (same list).
28
29 Eureka!
30
31 A search for "ansi" at gmane suggested using ansi-term instead
32 of shell. That gave me color but previous line editing and such were
33 different, which I'm not sure I like :-<
34
35 So I looked in /usr/share/emacs/... for ansi-term and found
36 ansi-color.el. Comments at the beginning tell how to turn on color
37 within a shell. This looks like what I want!
38
39 Thank you muchly.
40
41 David
42 --
43 gentoo-user@g.o mailing list

Replies

Subject Author
[gentoo-user] Re: emacs shell color question reader@×××××××.com