From 172171629f8bc115b1d87c4fe389053a19222790 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 11 Nov 2001 20:09:34 +0000 Subject: [PATCH] (Shell Options): Add brief mention of ansi-color. --- man/misc.texi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/man/misc.texi b/man/misc.texi index ec1f53c95ee..7441c7c3db8 100644 --- a/man/misc.texi +++ b/man/misc.texi @@ -959,6 +959,13 @@ directory stack if they are not already on it (@code{shell-pushd-dunique}). The values you choose should match the underlying shell, of course. + If you want Shell mode to handle color output from shell commands, +you can enable ANSI Color mode. Here is how to do this: + +@example +(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on) +@end example + @node Terminal emulator @subsection Emacs Terminal Emulator @findex term