Subject: Re: bug#11785: 24.1; term-mode doesn't respect first color change from a process

From: Glenn Morris <[email-masked]>
Date: Tue, 26 Jun 2012 03:34:34 -0400

Michael Hoffman wrote:

> $ cat test.sh
> #!/usr/bin/env bash
> echo -e "\E[31mRed \E[32mGreen"
>
> When running this, I expect to get "Red" in red and "Green" in green.
>
> Running `emacs -Q --eval '(ansi-term "./test.sh")' with Emacs 24 results
> in "Red" in black (not red as expected) and "Green" in green. Doing this
> with Emacs 23.1 results in the expected behavior ("Red" in red).

The issue first appears in 23.2. Removing the call to term-ansi-reset in
term-mode brings back the red.