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

option to discard color codes & al #38

Open
macmpi opened this issue Dec 1, 2022 · 2 comments
Open

option to discard color codes & al #38

macmpi opened this issue Dec 1, 2022 · 2 comments

Comments

@macmpi
Copy link

macmpi commented Dec 1, 2022

Some programs (like bluetoothctl) report messages with color codes that can't be disabled: that makes sexpect regex quite challenging to craft (expect seems immune to that).
Would it make sense to have a mode/option to discard all of such formatting for regex/exact/glob matches?
Thanks for consideration.

@clarkwang
Copy link
Owner

clarkwang commented Dec 2, 2022

It's also very challenging for sexpect. It's not easy to recognize these control sequences.

@macmpi
Copy link
Author

macmpi commented Dec 2, 2022

maybe something like this could help?
https://gitlab.com/saalen/ansifilter/

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