Skip to content

Escape unprintable characters#44

Merged
cdepillabout merged 9 commits intocdepillabout:masterfrom
dminuoso:master
Feb 7, 2019
Merged

Escape unprintable characters#44
cdepillabout merged 9 commits intocdepillabout:masterfrom
dminuoso:master

Conversation

@dminuoso
Copy link
Copy Markdown

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
Copy Markdown
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