frida / frida-tools

Frida CLI tools
Other
338 stars 95 forks source link

application.py: Respond to NO_COLOR environment variable. #149

Closed smcpeak closed 3 months ago

smcpeak commented 7 months ago

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.

Fixes frida/frida-tools#148.

oleavr commented 3 months ago

Thanks! (And apologies for the delay!)