Prompt jumps to end of screen
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 817
- Forks
- 247
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 30
Description
Environment: Windows 11 -> Windows Terminal
When inputting anything in the prompt on Windows Terminal, the prompt jumps to the last line immediatly. It also happens when just using a directional arrow key or backspace (so even when no character is added / removed and no cursor move is performed).
This happens even by just making a simple Rust program made of read_line(&DefaultPrompt::default() without anything else.
Initial state:
After pressing a key:
EDIT: This does not happen if a line was already printed in the terminal. So launching PowerShell for instance then reading a line won't produce this jump.
Contributor guide
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
Reproduce the issue on Windows 11 in Windows Terminal with a minimal Rust program using read_line(&DefaultPrompt::default()), both in a fresh terminal and after another line has been printed. Trace the prompt rendering and cursor handling from that entry point; done means key presses no longer move the prompt to the last screen line in the fresh-terminal case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100