[GH-ISSUE #541] treeview show text incorrent #394

Closed
opened 2026-03-04 01:04:36 +03:00 by kerem · 2 comments
Owner

Originally created by @l1b0k on GitHub (Dec 25, 2020).
Original GitHub issue: https://github.com/rivo/tview/issues/541

hi , i found treeview won't show first letter, what do i missing?

image

here is the code

	ids := []string{
		"1",
		"2",
		"10",
		"11",
	}
	for i := 0; i < len(ids); i++ {
		node := tview.NewTreeNode(ids[i])
		root.AddChild(node)
	}
Originally created by @l1b0k on GitHub (Dec 25, 2020). Original GitHub issue: https://github.com/rivo/tview/issues/541 hi , i found treeview won't show first letter, what do i missing? ![image](https://user-images.githubusercontent.com/4043362/103119943-9ac93c80-46b0-11eb-9dcc-3748fd6cb0dd.png) here is the code ```go ids := []string{ "1", "2", "10", "11", } for i := 0; i < len(ids); i++ { node := tview.NewTreeNode(ids[i]) root.AddChild(node) } ```
kerem closed this issue 2026-03-04 01:04:37 +03:00
Author
Owner

@rivo commented on GitHub (Jan 11, 2021):

I can't reproduce this. This is what it looks like to me:

image

You might want to look at the FAQ: https://github.com/rivo/tview/wiki/FAQ

I contains an entry which could be relevant to your issue.

Let me know if this helps.

<!-- gh-comment-id:758032889 --> @rivo commented on GitHub (Jan 11, 2021): I can't reproduce this. This is what it looks like to me: ![image](https://user-images.githubusercontent.com/480930/104203038-f7a45100-542b-11eb-9e30-3e6e6f9f04cc.png) You might want to look at the FAQ: https://github.com/rivo/tview/wiki/FAQ I contains an entry which could be relevant to your issue. Let me know if this helps.
Author
Owner

@l1b0k commented on GitHub (Jan 12, 2021):

@rivo hi, thanks for reply, solved with export LC_CTYPE="en_US.UTF-8"

<!-- gh-comment-id:758342435 --> @l1b0k commented on GitHub (Jan 12, 2021): @rivo hi, thanks for reply, solved with `export LC_CTYPE="en_US.UTF-8"`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#394
No description provided.