Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

human-readable outputter for binary formats #44

Open
KernelDeimos opened this issue Mar 4, 2024 · 0 comments
Open

human-readable outputter for binary formats #44

KernelDeimos opened this issue Mar 4, 2024 · 0 comments

Comments

@KernelDeimos
Copy link
Collaborator

KernelDeimos commented Mar 4, 2024

Right now commands outputting binary which cannot be rendered as test (ex: txt2img) can render the terminal unusable as reported here.

Most shells will have this same issue because byte streams are always rendered when they're not redirected. However, we can do a bit better since commands have models. For any command with a corresponding model, we can specify the output format. For any command that reports to output in binary format, if it's directly output to stdout we can render it as hex values instead.

Open to suggestions/ideas on this, especially about potential problems with the approach described above.

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

No branches or pull requests

1 participant