nushell / nushell/reedline

Prompt repaint issue on term resizing, with non-empty right prompt

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

Nobody has claimed this yet.

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

Description

Platform macOS

Here's what happens with ghostty:

https://github.com/user-attachments/assets/265bc979-5652-4c04-a158-fef0fbc60f1b

Notice that it behaves quite differently with or without osc133

However with wezterm/terminal

Enabling osc133 doesn't help:

https://github.com/user-attachments/assets/33a931c2-3a60-4f13-b220-7fbe7a4f0e85

3 key conditions to reproduce the bug:

  1. multiline left prompt string
  2. none-empty right prompt
  3. $env.config.render_right_prompt_on_last_line set to false

Here's what happens if condition 1 is not met:

https://github.com/user-attachments/assets/8c6034e8-784d-4035-a692-e48ec259f111

Basically, the ideal behavior shared by bash/zsh across different prompt settings and terminal apps.

Things get more complicated if tmux enabled

With ghostty + osc133 set to true + tmux, the issue persists, just like the screenshot in #864, where text gets moved up one row at a time.

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

No source file or test is named. Reproduce the resize behavior on macOS with a multiline left prompt, a non-empty right prompt, and render_right_prompt_on_last_line disabled, then compare OSC 133 and tmux cases. Done means prompt repainting matches the described bash/zsh behavior across the listed terminal configurations.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.