Prompt repaint issue on term resizing, with non-empty right prompt
Nobody has claimed this yet.
- 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:
- multiline left prompt string
- none-empty right prompt
$env.config.render_right_prompt_on_last_lineset 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
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
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