medikoo / medikoo/cli-progress-footer

Broken cursor state after process crashes

Open
#3 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug good first issue help wanted
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.