Skip to content

Cursor dissapears after CTRL-C in mocha --watch #2645

@mcortesi

Description

@mcortesi

It seems mocha hides the cursor during the run but it forgots to enable it again when a SIGINT is sent...

In my script i had to do:

  process.on('SIGINT', function() {
    // show cursor
    console.log("\x1B[?25h");
    process.exit();
  });

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: buga defect, confirmed by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions