-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add option to display file even if bat thinks it is binary #623
Comments
We do this on purpose to prevent users from accidentally "printing" binary files to the terminal that could mess up their terminal emulator. But adding an option to overwrite this behavior sounds very reasonable. Also, I agree that it would be great if |
see also #619 |
Let's start by changing |
👍🏽🤞🏻
…On Fri, Aug 16, 2019 at 1:02 AM David Peter ***@***.***> wrote:
Let's start by changing bat -A such that binary files will be displayed.
Non-UTF-8 byte sequences would be replaced by a hex representation (e.g.
\xFE\xEF).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#623?email_source=notifications&email_token=AIUL56VW6UINWORPNOM7HUDQEW4PPA5CNFSM4IJ6DWG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4M5M7Q#issuecomment-521787006>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIUL56THKXOWYBVHCL7Q2VDQEW4PPANCNFSM4IJ6DWGQ>
.
|
This can now be done with |
Released in bat v0.12. |
I have a file with this content:
# cat -v sth ^@this is 1. this is 2. this is 3. ^@hi ^@blue boy
And
bat -A sth
returns:The text was updated successfully, but these errors were encountered: