Skip to content

Commit

Permalink
Merge pull request #11153 from OfficeDev/anchenyi/fix_spinner_cursor
Browse files Browse the repository at this point in the history
fix: spinner cursor
  • Loading branch information
anchenyi authored Mar 21, 2024
2 parents 6bd8cb8 + e8fb2f1 commit 1c9557d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/spinner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class CustomizedSpinner {
clearInterval(this.intervalId);
this.intervalId = null;
// show cursor
process.stdout.write("\x1b[?25h\n");
process.stdout.write("\x1b[?25h");
}
}
}
2 changes: 1 addition & 1 deletion packages/cli/tests/unit/spinner.tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe("CustomizedSpinner", function () {

spinner.stop();

expect(writeStub.lastCall.args[0]).to.equal("\x1b[?25h\n");
expect(writeStub.lastCall.args[0]).to.equal("\x1b[?25h");
});
});

Expand Down

0 comments on commit 1c9557d

Please sign in to comment.