Skip to content

possible unexpected coloring to the shell #22

Open

Description

@plantvsbirds

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions