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

Some terminal output improvements #452

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

Conversation

atenart
Copy link
Contributor

@atenart atenart commented Nov 14, 2024

  • Auto detect if we should output colors or not.
  • Fix EPIPE handling when writing to stdout.

@atenart atenart added this to the v1.5 milestone Nov 14, 2024
Also handle the known TERM=dumb case.

Closes #450.

Signed-off-by: Antoine Tenart <[email protected]>
Signed-off-by: Antoine Tenart <[email protected]>
When using the `print` or `sort` commands, the user might use a pipe to
capture the output. Do not issue an error if the pipe is broken (eg.
when using `retis print | head -1`).

Closes #451.

Signed-off-by: Antoine Tenart <[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.

1 participant