New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
text rendering incorrectly using serial data #931
Comments
You need to wrap your content at the given maximum width. |
#43 looked at this issue and added wrapping using github.com/muesli/reflow/wordwrap package yet it still has that weird despairing bug although text appears when i add long enough string so wordwrap triggers and then all seems to stay on screen from that point on |
I'm experiencing this exact bug. I thought about calling
in the beginning of |
Hi! @Horryportier or @m1cm1c: can you produce a minimal example, with |
I don't thing reflowis the issue, bug was present before I've added that library. Wordwrap solved issue partially because it still would occurred for strings shorter that wrap threshold but it would fix itself after wordwrap was triggered As for reproducing the bug it would hard because it only occurs for me when dealing with text data from serial port. So there might be issue with data send from esp32 having some weird glyphs. Although arduino ide 2 works just fine. |
@meowgorithm Here is a fairly small program that reliably reproduces the described behavior: https://gist.github.com/m1cm1c/0248ef748db56d0cc1f7e4398a3f2fad I ran it via: After making the window wider (looks fine): After making the window narrower again, "(esc to quit)" repeats: OS: Manjaro |
Describe the bug
text dose not render correctly when inserting longer line
Setup
Please complete the following information along with version numbers, if applicable.
To Reproduce
i have text value that i append to data from serial port and its displayed
Source Code
https://github.com/Horryportier/go-serial-tui/blob/main/main.go
Expected behavior
content should not disappear whenever longer line is append. from my test's when not using data from serial it works without any issues
Screenshots
https://github.com/charmbracelet/bubbletea/assets/42907709/f60e8030-80da-46a3-bd8e-7f7bead8d006
The text was updated successfully, but these errors were encountered: