prettyjson icon indicating copy to clipboard operation
prettyjson copied to clipboard

possible unexpected coloring to the shell

Open plantvsbirds opened this issue 10 years ago • 0 comments

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?

plantvsbirds avatar Nov 08 '15 00:11 plantvsbirds