nushell / nushell/reedline

Prompt jumps to end of screen

Open
#665 4 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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:

image

After pressing a key:

image

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.