Copyright (C) 2000-2012 |
GNU Info (efaq)Escape sequences in shell outputWhy 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 |