[GH-ISSUE #769] why the title is missing first letter? #560

Closed
opened 2026-03-04 01:06:01 +03:00 by kerem · 4 comments
Owner

Originally created by @guohuachan on GitHub (Nov 15, 2022).
Original GitHub issue: https://github.com/rivo/tview/issues/769

image
I'm new to tview. sorry, maybe it's my fault.
here is my code
I compile it in linux centos 7

func newUI() {
	app = tview.NewApplication()
	databases := tview.NewList().ShowSecondaryText(false)
	databases.SetBorder(true).SetTitle("Databases")
	tables := tview.NewList()
	tables.ShowSecondaryText(false).
		SetDoneFunc(func() {
			tables.Clear()
			app.SetFocus(databases)
		})
	tables.SetBorder(true).SetTitle("Tables")

	// Create the layout.
	flex := tview.NewFlex().
		AddItem(databases, 0, 1, true).
		AddItem(tables, 0, 1, false)

	pages = tview.NewPages().
		AddPage(finderPage, flex, true, true)
	app.SetRoot(pages, true)

	if err := app.Run(); err != nil {
		fmt.Printf("Error running application: %s\n", err)
	}
}
Originally created by @guohuachan on GitHub (Nov 15, 2022). Original GitHub issue: https://github.com/rivo/tview/issues/769 ![image](https://user-images.githubusercontent.com/46174783/201851197-f91a0351-05fe-4ecd-86a5-fdee69576344.png) I'm new to tview. sorry, maybe it's my fault. here is my code I compile it in linux centos 7 ``` func newUI() { app = tview.NewApplication() databases := tview.NewList().ShowSecondaryText(false) databases.SetBorder(true).SetTitle("Databases") tables := tview.NewList() tables.ShowSecondaryText(false). SetDoneFunc(func() { tables.Clear() app.SetFocus(databases) }) tables.SetBorder(true).SetTitle("Tables") // Create the layout. flex := tview.NewFlex(). AddItem(databases, 0, 1, true). AddItem(tables, 0, 1, false) pages = tview.NewPages(). AddPage(finderPage, flex, true, true) app.SetRoot(pages, true) if err := app.Run(); err != nil { fmt.Printf("Error running application: %s\n", err) } } ```
kerem closed this issue 2026-03-04 01:06:01 +03:00
Author
Owner

@guohuachan commented on GitHub (Nov 15, 2022):

github.com/rivo/tview v0.0.0-20220916081518-2e69b7385a37

<!-- gh-comment-id:1315211253 --> @guohuachan commented on GitHub (Nov 15, 2022): github.com/rivo/tview v0.0.0-20220916081518-2e69b7385a37
Author
Owner

@rivo commented on GitHub (Nov 15, 2022):

It's the first question in the FAQ:

https://github.com/rivo/tview/wiki/FAQ

<!-- gh-comment-id:1315387495 --> @rivo commented on GitHub (Nov 15, 2022): It's the first question in the FAQ: https://github.com/rivo/tview/wiki/FAQ
Author
Owner

@guohuachan commented on GitHub (Nov 16, 2022):

yes,it works fine
I'm so sorry to bother u with I forget to check FAQ

<!-- gh-comment-id:1316160211 --> @guohuachan commented on GitHub (Nov 16, 2022): yes,it works fine I'm so sorry to bother u with I forget to check FAQ
Author
Owner

@rivo commented on GitHub (Nov 16, 2022):

No problem. Glad it's working now.

<!-- gh-comment-id:1316418720 --> @rivo commented on GitHub (Nov 16, 2022): No problem. Glad it's working now.
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#560
No description provided.