mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #1106] How to input emoji in tview.TextArea? #804
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#804
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 @chehan01 on GitHub (Jul 28, 2025).
Original GitHub issue: https://github.com/rivo/tview/issues/1106
Now, when I input an emoji, the terminal looks like this:
And the tview.TextView has the same problem:
How to fix it?
@rivo commented on GitHub (Sep 1, 2025):
I actually don't know how to fix it. This appears to be a problem with keyboard input on Windows via
tcell. The two codepoints for this emoji get replaced by two Unicode replacement characters. So the emoji codepoints never reach thetviewapplication. I don't know why this happens. (I found this after a quick Google search but couldn't find a quick fix for this problem.)Maybe you can write a short
tcellapplication that shows the same behaviour. If it does, please post it as an issue to thetcellproject.@chehan01 commented on GitHub (Sep 2, 2025):
Well, thanks.