GNU Info

Info Node: (efaq)Escape sequences in shell output

(efaq)Escape sequences in shell output


Prev: Filling paragraphs with a single space Up: Common requests
Enter node , (file) or (file)node

Why do I get these strange escape sequences when I run
======================================================

   `ls' from the Shell mode?

   This happens because `ls' is aliased to `ls --color' in your shell
init file.  You have two alternatives to solve this:

   * Make the alias conditioned on the `EMACS' variable in the
     environment.  When Emacs runs a subsidiary shell, it exports the
     `EMACS' variable with the value `t' to that shell.  You can
     unalias `ls' when that happens, thus limiting the alias to your
     interactive sessions.

   * Install the `ansi-color' package (bundled with Emacs 21.1 and
     later), which converts these ANSI escape sequences into colors.


automatically generated by info2www version 1.2.2.9