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

Option to turn off color output #69

Closed
awshew opened this issue Feb 16, 2021 · 3 comments
Closed

Option to turn off color output #69

awshew opened this issue Feb 16, 2021 · 3 comments

Comments

@awshew
Copy link

awshew commented Feb 16, 2021

Please provide an option to turn off ANSI color output - our pipeline tool (ConcourseCI) doesn't interpret the 256 ANSI code outputted by mark properly, and results in blinking text which is nearly impossible to read. A bug was raised with them and auto-closed - concourse/concourse#2390

@kovetskiy
Copy link
Owner

Hi, I'm not actually sure why you would need an option to disable it, because mark automatically detects that the stdin is not a tty. So if you run mark in a script, it should not show a colored output, you can easily confirm it by something like that:

 $  mark -u e -p p -b b -f test.md --dry-run 
 $  mark -u e -p p -b b -f test.md --dry-run 2>&1 | cat

Does concourse somehow emulate tty mode?

image

@awshew
Copy link
Author

awshew commented Mar 17, 2021

Concourse doesn't process the ANSI codes mark uses properly, rendering all output text as a blinking blob. While the fix for that lies with them, this wasn't an issue with mark prior to 4.0 so we'd like to skip colour altogether if possible.

@kovetskiy
Copy link
Owner

The option is available in version 5.4, just pass --color never and mark will not colorize the output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants