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

Add option to strip non-printable characters from the log output #37

Open
CullenMoMullen opened this issue Aug 14, 2020 · 2 comments
Open

Comments

@CullenMoMullen
Copy link

CullenMoMullen commented Aug 14, 2020

Currently any non-printable characters are written to the serial log. For instance escape sequences for color information. They show up in the log as unrecognizable characters. It would be nice to have the option of stripping these from the log file, but keeping them for display in the terminal.

@blardyblar
Copy link
Contributor

blardyblar commented Jun 22, 2023

I would also like this, as it would be very handy for my needs as well.

I can work on this, but my question is do you think the right way to go is have a separate menu option for this, File -> Save ASCII File? Looking at the code, that's the easiest way to add it without adding another dialog box where you have to choose if you want RAW or ASCII every time (which seems annoying / dumb)

For my use, I just want to remove all characters < 0x20 except 0x0A (LF) and 0x0D (CR), but it sounds like the original requestor also wants ANSI escape sequences removed - is there anything else I'm not thinking about that should be removed as well?

@blardyblar
Copy link
Contributor

I coded up adding a new menu entry for Save ASCII File and stripping out any control characters other than 0x0D and 0x0A, but I haven't implemented any kind of ANSI escape code removal yet. I will do a PR when I add that

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

No branches or pull requests

3 participants