pterm / pterm/pterm

Repeating Prompt Text when Default Text Goes Beyond Single Line

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

Nobody has claimed this yet.

bug
Dominant language
Go
Stars
5.5k
Forks
221
PR merge metrics
No merged PRs in 30d

Description

When the default text of DefaultInteractiveSelect and DefaultInteractiveMultiselect go beyond a single line in a terminal, the first line of text repeats continuously each time I select a different option, these repeats as many times as I move up and down the options.

It looks like this recording: https://giphy.com/embed/ZfYugaw5Vw1xbav5aQ

Contributor guide

Open the contributing guide

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 by locating the Go implementations of DefaultInteractiveSelect and DefaultInteractiveMultiselect, then reproduce the issue with default text spanning multiple terminal lines while changing options. Compare the terminal output with the linked recording; done means the first line no longer repeats during navigation.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
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.