Re: [gentoo-user] Re: emacs shell color question

2006-12-27 Thread Tom Naujokas
On Tue, 2006-26-12 at 19:24 -0500:

...[snip]...
  
  Good, however you should not really need to use ansi-mode.
  I do not, and don't have the trouble you mentioned.
  
  In normal shell-mode (M-x shell) I do see the escape sequences you
  mention but not in eshell (M-x eshell).
  
...[snip]...

I have similar problems with xemacs. Both shell and eshell act the same
and there seems to be no ansi-term for xemacs. This used to work fine.

Could this be a terminfo problem? When I do the following in a xemacs
shell:

[EMAIL PROTECTED] ~ $ echo $TERM
emacs
[EMAIL PROTECTED] ~ $ find /usr/share/terminfo -name emacs -print
[EMAIL PROTECTED] ~ $ 

Doesn't this indicate that the terminal type emacs is missing from the
terminfo database. If so, how would I get it back?

Tom

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: emacs shell color question

2006-12-26 Thread David Relson
On Mon, 25 Dec 2006 21:54:01 -0600
[EMAIL PROTECTED] wrote:

 David Relson [EMAIL PROTECTED] writes:
 
  On Mon, 25 Dec 2006 01:00:31 -0600
  [EMAIL PROTECTED] wrote:
 
  David Relson [EMAIL PROTECTED] writes:
  
   G'day,
  
   I habitually run emacs shell sessions.  When I forget the --color
   options, for example for the ls and emerge commands, the shell
   session displays the ascii escape sequences which is pretty ugly.
   Is there an option for telling emacs to handle escape sequences?
  
  Does the problem persist if you use `eshell' instead of shell?
  (M-x eshell RET)
 
 There is an ansi mode that is made to hand escape sequences but that
 should not be necessary.  All recent emacs just work.
 
 That makes me think it is something in your environment.
 
 To get expert help I suggest you post on gnu.emacs.help  Or on
 gmane.emacs.help (same list).

Eureka!  

A search for ansi at gmane suggested using ansi-term instead
of shell.  That gave me color but previous line editing and such were
different, which I'm not sure I like :-

So I looked in /usr/share/emacs/... for ansi-term and found
ansi-color.el.  Comments at the beginning tell how to turn on color
within a shell.  This looks like what I want!

Thank you muchly.

David
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: emacs shell color question

2006-12-26 Thread David Relson
On Tue, 26 Dec 2006 09:51:22 -0600
[EMAIL PROTECTED] wrote:

...[snip]...
 
 Good, however you should not really need to use ansi-mode.
 I do not, and don't have the trouble you mentioned.
 
 In normal shell-mode (M-x shell) I do see the escape sequences you
 mention but not in eshell (M-x eshell).
 
 I think, if you post on gmane.emacs.help with what you are
 experiencing someone will be able to help you identify, what in your
 OS setup is causing the problem.
 
 I did notice one thread where the user ended up discovering somekind
 of alias to ls that was causing his problem.
 
  http://thread.gmane.org/gmane.emacs.help/39496/focus=39505
 
 Typing `alias' in an xterm might reveal something.  Here I see:
   alias ls='ls --color=auto'
 as the only reference to ls.
 
 Posting there with your exact problem would probably be best.

I generally have ls aliased to 'ls --color=none' and that works
fine.  In my post I used ls as a simple example of a program
that can/does use escape sequences.  

Other programs that use escape sequences are emerge and runscript
(used in starting services).  Alias 'emerge --color'
suppresses ansi color sequences for direct invocations of emerge
(because the alias is used for that).  

I also use 'eix-sync' which runs emerge.  In _this_ instance, ansi
escape sequences are _not_ suppressed and I do find them annoying.

Now that I'm home from work, I have the time to experiment :-
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: emacs shell color question

2006-12-25 Thread David Relson
On Mon, 25 Dec 2006 01:00:31 -0600
[EMAIL PROTECTED] wrote:

 David Relson [EMAIL PROTECTED] writes:
 
  G'day,
 
  I habitually run emacs shell sessions.  When I forget the --color
  options, for example for the ls and emerge commands, the shell
  session displays the ascii escape sequences which is pretty ugly.
  Is there an option for telling emacs to handle escape sequences?
 
 Does the problem persist if you use `eshell' instead of shell?
 (M-x eshell RET)

yes.

-- 
gentoo-user@gentoo.org mailing list