charmbracelet / charmbracelet/bubbletea
Inline: rendering artifacts when resizing window
- Dominant language
- Go
- Stars
- 44.9k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
A clear and concise description of what the bug is.
**Setup**
Please complete the following information along with version numbers, if applicable.
- OS [e.g. Ubuntu, Mac OS]: PopOS (Ubuntu)
- Shell [e.g. zsh, fish]: zsh
- Terminal Emulator [e.g. kitty, iterm]: no
- Terminal Multiplexer [e.g. tmux]: no
**To Reproduce**
Steps to reproduce the behavior:
1. Run fancy-list example
2. Resize the terminal multiple times to a very minimal height
**Source Code**
[Please include source code if needed to reproduce the behaviour.
](https://github.com/charmbracelet/bubbletea/tree/master/examples/list-fancy)
**Expected behavior**
The program should not repaint the program on multiple lines.
**Screenshots**
[Screencast_from_04-09-2023_034642_PM.webm](https://user-images.githubusercontent.com/1764424/230777720-41efe195-75e3-4412-998e-0dcc36f69fb5.webm)
**Additional context**
Replicated in Gnome Terminal, JetBrains In-built, VsCode
Contributor guide
Research direction
Start by running the examples/list-fancy example and reproduce the artifacts by repeatedly resizing the terminal to a minimal height. Trace the resize and rendering path used by that example, then verify that repeated resizes no longer repaint the program across multiple lines in the listed terminal environments.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100