mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #324] Some characters cause weird behaviours during input and rendering #249
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#249
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Bios-Marcel on GitHub (Jul 20, 2019).
Original GitHub issue: https://github.com/rivo/tview/issues/324
I just had someone sent
™in an app using tview. Every tview is displayed as a two-cell character, even though the actualTMis in one cell. Sometimes the second cell is a different color than the rest of theTextViewand sometimes it copies the character above it.I can't figure out when which situation occurs, but here are two screenshots:
The latter can be reproduced with:
I Also saw this happen with some other characters sometimes. And I tried this on multiple terminals, those being iTerm2(mac OS), termite(vte-based on linux) and alacritity(linux).
The same also happens when for example inputting into an
InputField.@rivo commented on GitHub (Jul 21, 2019):
Please check out #278. This is very likely a problem with the mattn/go-runewidth package.
tcellalso depends on this package so there there will probably artifacts as long as this is not fixed there. You could open an issue over atgo-runewidth.I'm thinking about implementing my own version of
go-runewidth(there are multiple issues with it) but haven't gotten around to it yet.