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

Escape unprintable characters #44

Merged
merged 9 commits into from
Feb 7, 2019
Merged

Conversation

dminuoso
Copy link

The library does not handle unprintable characters specially. If one uses uses pretty-simple to print such characters to stdout this can corrupt a connected terminal or have some amusing effects, such as opening the system print dialog.

This patch escapes any unprintable characters except newlines while giving an option to turn the old behaviour back on.

@cdepillabout cdepillabout merged commit 787cec7 into cdepillabout:master Feb 7, 2019
@cdepillabout
Copy link
Owner

Thanks! I think this is a helpful change!

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.

2 participants