Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent use of color in command output to file #59

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

ianthomas23
Copy link
Member

When outputting commands that are colored, such as grep, to file, no color should be used. This is achieved here by not setting the TERM environment variable for the command.

Behaviour before this PR:
Screenshot 2024-09-23 at 08 34 32

and after:
Screenshot 2024-09-23 at 08 35 28

@ianthomas23 ianthomas23 added the bug Something isn't working label Sep 23, 2024
@ianthomas23 ianthomas23 merged commit d1feb64 into main Sep 23, 2024
4 checks passed
@ianthomas23 ianthomas23 deleted the no-color-redirect-to-file branch September 23, 2024 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant