Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have noticed that some colors in LS_COLORS don't work when running a shell inside M-x-ansi-term in Emacs.

For exmaple;

di 00 94 

is supposed to turn on bold on light blue on directories on LS_COLORS (see a list of the codes here), but ansi-term in Emacs does not show it in color. In fact, only the simple colors listed on that website seem to work under ansi-term in Emacs, while they work perfectly well on my regular gnome terminal.

Is there a way to get ansi-term to recognize the so called extra colors? Where/how can I look up the colors supported by ansi-term in Emacs?

share|improve this question

How about this command?

M-x ansi-color-for-comint-mode-on
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.