nushell / nushell/reedline

prompt overwrites text line if no newline is found

Open
#398 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-Display bug
Dominant language
Rust
Stars
818
Forks
249
Avg merge
4d 14h
Merged PRs (30d)
30

Description

Platform Windows 11
Terminal software Windows Terminal

Describe the problem you are observing.
When the steps are followed below, you see the text initially appear on the screen and then the prompt overwrites the last line.

Steps to reproduce (from within nushell)

  1. touch a
  2. notepad a
  3. type some text, hit enter, type some more text and DO NOT hit enter (this is key, the last line must not have a crlf)
  4. cat a or type a shows both lines of text, and then when the prompt is drawn, it overwrites the last line

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 from within nushell using the listed touch, notepad, and cat or type steps. Start by tracing how reedline redraws the prompt after output without a final CRLF; done means the final text line remains visible when the prompt is drawn.

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
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.