When NO_COLOR is set to a non-empty string, this disables emission of colored text, per the specification proposal at https://no-color.org/ .
In the modified code, setting NO_COLOR does not set the plain_terminal flag because that flows into self._plain_terminal, which is used elsewhere for things unrelated to colors.
When
NO_COLOR
is set to a non-empty string, this disables emission of colored text, per the specification proposal at https://no-color.org/ .In the modified code, setting
NO_COLOR
does not set theplain_terminal
flag because that flows intoself._plain_terminal
, which is used elsewhere for things unrelated to colors.Fixes frida/frida-tools#148.