[Top][All Lists]

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

Turning off ls colors (was: impossible to leave a shell frame ...)

From: Steve Revilak
Subject: Turning off ls colors (was: impossible to leave a shell frame ...)
Date: Sun, 13 Feb 2011 13:41:09 -0500
User-agent: Mutt/1.5.20 (2009-06-14)

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.


Attachment: pgpla5jDjUsNH.pgp
Description: PGP signature

reply via email to

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