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

readline: add questionCancel() method to cancel ongoing question #33676

Closed

Commits on Jan 21, 2021

  1. readline: add support for the AbortController to the question method

    In some cases a question asked needs to be canceled. For instance
    it might be desirable to cancel a question when a user presses
    ctrl+c and triggers the SIGINT event.
    Also an initial empty string was set for this.line since the
    cursor methods fail if line is not initialized.
    Added custom promisify support to the question method.
    mattiasrunge committed Jan 21, 2021
    Copy the full SHA
    d6b1ca9 View commit details
    Browse the repository at this point in the history