help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Turning off ls colors


From: Tim X
Subject: Re: Turning off ls colors
Date: Mon, 14 Feb 2011 08:25:10 +1100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Steve Revilak <address@hidden> writes:

>>The "^[[01;34m" texts are ANSI Escape Sequences to colourise the
>>output of (g)ls. You can switch that off. Or execute ansi-color-for-
>>comint-mode-on. For example in your init file.
>
> In many cases, ls gets coloring information from the environment
> variable LS_COLORS.  From a shell prompt, you can examine the value of
> this variable by
>
>   echo $LS_COLORS
>
> if LS_COLORS has a value, you can try unsetting the variable, to see
> what effect that has
>
>   unset LS_COLORS
>
> ls is not the only program that uses escape sequences for
> colorization.  For example, there are distributions that use escape
> sequences to colorize the the shell prompt.  bash's command prompt
> comes from the environment variable $PS1; tcsh uses the environment
> variable $prompt.  You may want to look at these variables as well.
>

The simplest solution to these issues within emacs is to just use the
ansi color package. 

,----[ C-h f ansi-color-for-comint-mode-on RET ]
| ansi-color-for-comint-mode-on is an interactive compiled Lisp function in
| `ansi-color.el'.
| 
| (ansi-color-for-comint-mode-on)
| 
| Set `ansi-color-for-comint-mode' to t.
| 
| This function is advised.
| 
| After-advice `emacspeak':
| Provide auditory feedback.
| 
| [back]
`----


-- 
tcross (at) rapttech dot com dot au


reply via email to

[Prev in Thread] Current Thread [Next in Thread]