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

possible unexpected coloring to the shell #22

Open
plantvsbirds opened this issue Nov 8, 2015 · 0 comments
Open

possible unexpected coloring to the shell #22

plantvsbirds opened this issue Nov 8, 2015 · 0 comments

Comments

@plantvsbirds
Copy link

649438969

Somewhat the shell was colored. everything after was green. But by re-running the very same node program(with prettyjson output, which should change text color repeatly), it was restored to normal.
My setup for prettyjson

var prettyjson = require('prettyjson')
var log = (obj) => console.log(prettyjson.render(obj, { }))
log(some_object)

Environment : Running directly in bash, color setting as

tput colors
> 8

Version of prettyjson

{ prettyjson: '1.1.3',
...

I couldn't repeat the bug, strangely. I suppose my node app was killed unexpectly.

maybe we can do some fix by listening process onexit?

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

1 participant