* Re: Turning off ls colors
[not found] <mailman.2.1297622483.4329.help-gnu-emacs@gnu.org>
@ 2011-02-13 21:25 ` Tim X
0 siblings, 0 replies; only message in thread
From: Tim X @ 2011-02-13 21:25 UTC (permalink / raw)
To: help-gnu-emacs
Steve Revilak <steve@srevilak.net> 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-02-13 21:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.2.1297622483.4329.help-gnu-emacs@gnu.org>
2011-02-13 21:25 ` Turning off ls colors Tim X
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).