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

ENH: Syntax highlighting with ANSI escape sequences #467

Open
westurner opened this issue Dec 19, 2024 · 2 comments
Open

ENH: Syntax highlighting with ANSI escape sequences #467

westurner opened this issue Dec 19, 2024 · 2 comments

Comments

@westurner
Copy link

Users could parse retis output more easily with ANSI color escape sequences around fields

  • --no-color or --color=always/--color=never according to IIRC $TERM
  • TERM=dumb implies no colors
  • Latest /sbin/ip colors fields and it's helpful for manually parsing
@westurner
Copy link
Author

Would syntax highlighting be a useful general feature, or should that be a post-processing script in e.g. Python?

@atenart
Copy link
Contributor

atenart commented Dec 19, 2024

Thanks for raising this. Supporting this as part of the core or allowing to format the output using a provided Python function would be two options to get there.

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

No branches or pull requests

2 participants