[GH-ISSUE #1099] Expose SetTilte on Screen #797

Closed
opened 2026-03-04 01:07:49 +03:00 by kerem · 1 comment
Owner

Originally created by @Qendolin on GitHub (Jun 25, 2025).
Original GitHub issue: https://github.com/rivo/tview/issues/1099

As far as I can tell Application doesn't expose it's screen directly, and it doesn't have a way to call screen.SetTitle.
The workaround isn't too difficult, but it would still be nice to be able to have an app.SetTitle

Workaround:

screen, err := tcell.NewScreen()
if err != nil {
	return err
}
if err = screen.Init(); err != nil {
	return err
}
screen.SetTitle("My Terminal App")
a.SetScreen(screen)
Originally created by @Qendolin on GitHub (Jun 25, 2025). Original GitHub issue: https://github.com/rivo/tview/issues/1099 As far as I can tell `Application` doesn't expose it's `screen` directly, and it doesn't have a way to call `screen.SetTitle`. The workaround isn't too difficult, but it would still be nice to be able to have an `app.SetTitle` Workaround: ``` screen, err := tcell.NewScreen() if err != nil { return err } if err = screen.Init(); err != nil { return err } screen.SetTitle("My Terminal App") a.SetScreen(screen) ```
kerem closed this issue 2026-03-04 01:07:49 +03:00
Author
Owner

@rivo commented on GitHub (Jun 25, 2025):

Good idea. Didn't realize there is such a method in tcell now.

<!-- gh-comment-id:3005452428 --> @rivo commented on GitHub (Jun 25, 2025): Good idea. Didn't realize there is such a method in `tcell` 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#797
No description provided.