prettyjson
prettyjson copied to clipboard
possible unexpected coloring to the shell

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?