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

Ansi color code leak fix #223

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

VaibhavMalik4187
Copy link

Added a check to ensure that the ANSI colour codes in the headers are skipped when the output is redirected to the files.

The ANSI colour codes will only be present if the output file descriptor is TTY.

XDRAGON2002 and others added 3 commits September 7, 2023 15:13
Added a checks to ensure that the ANSI color codes are skipped when the
output is redirected to the files.

The ANSI color codes will only be present if the output file descriptor
is TTY.

Added unit tests for table with color

Fixes: kubescape/kubescape#1452

Signed-off-by: VaibhavMalik4187 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants