Skip to content

v6.1.1 hangs when stdin is discarded #211

Description

@timdp

With v6.1.1, this no longer exits:

import ora from 'ora'
const spinner = ora('test').start()
setTimeout(() => spinner.succeed(), 1000)

Changing the arg to { text: 'test', discardStdin: false } fixes it, which makes sense, as #210 introduced a change to the code that handles stdin.

I'm observing this on Node v14, v16, and v18.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions