with standard configuration shell does not interpret color escapes

Bug #373313 reported by Mario Frasca
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
emacs22 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: emacs22

on a clean ubuntu 9.04 installation, install emacs22 (22.2-0ubuntu2) and start a shell buffer.
check that ls is aliased:
$ alias
alias ls='ls --color=auto'

executing ls will outputs uninterpreted escapes.

I would expect ls to colorize directories, executable files etc.

executing this solves the problem.
      (add-hook 'shell-mode-hook (lambda ()
         (ansi-color-for-comint-mode-on)))

Revision history for this message
TheArtTrooper (ctrueman) wrote :

Glad I found your post! Thanks for the fix.

Revision history for this message
era (era) wrote :

I guess it's fair to mark this as "Confirmed", although it's not clear to me whether Ubuntu should implement the proposed fix.

Are there alternate ways to fix the problem? Making ls unaliased in shell buffers by default would of course obviate the need to cope with colorization out of the box, although I suppose some people actually like it.

Changed in emacs22 (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.