medikoo / medikoo/cli-progress-footer
Broken cursor state after process crashes
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 3
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
When a process that takes advantage of progress render crashes, it often leaves us with a broken cursor state.
It's caused by the fact that we're hiding the cursor for a time being of a progress: https://github.com/medikoo/cli-progress-footer/blob/cd355d8acfce791fe48175787858d032c2da08a1/lib/private/stdin-discarder.js#L26-L32
Ideally, we should observe process exit and ensure that the cursor is fixed in case of a crash
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in lib/private/stdin-discarder.js around the cursor-hiding logic at lines 26–32 and inspect how the CLI handles process exit. Ensure that a crashed process restores the cursor, then verify the cursor is left in a usable state after a progress-rendering process exits unexpectedly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100