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

Allow printing binary content by treating it the same as text #2976

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

Conversation

einfachIrgendwer0815
Copy link
Contributor

@einfachIrgendwer0815 einfachIrgendwer0815 commented May 31, 2024

Adds a CLI option called --binary which controls how binary content is handled. Possible values:

  • no-printing: do not print any content from a binary file (default; basically what bat currently does)
  • as-text: treat the binary as if it was text -> it will get printed as is

Fixes #2974.
Fixes #2709.

`--binary` allows to specify how to deal with binary content. Current
options are not printing anything or treating the binary data as text.
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.

Add Flag to Avoid Treating NUL Separated Input as Binary Allow bat to render some binary content
1 participant