mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #1067] Is it possible to create "inline" programs? #772
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#772
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 @rhodeon on GitHub (Jan 5, 2025).
Original GitHub issue: https://github.com/rivo/tview/issues/1067
I'm evaluating tview against bubbletea for a basic CLI tool. While tview ticks most of my boxes, an essential functionality I need is launching the program inline in the terminal.
For example, from the bubbletea textarea demo:
https://github.com/user-attachments/assets/6df7ab9a-df3c-45ab-9278-5a4f8cf0d07d
Here the program runs directly in the shell session and ending it returns to the prompt, all in an uninterrupted view.
On the other hand, with the tview textarea demo, a new screen session is created which replaces the parent view entirely until the program ends:
https://github.com/user-attachments/assets/3512e593-3548-4d98-8b59-ee514a85d97b
Is the bubbletea behaviour possible to configure with tview? I have tried setting the
fullscreenattribute of the root to false, but that only affects the newly launched screen.I see tview makes use of the gdamore/tcell library for launching the screen, so perhaps this is beyond its scope.
@rivo commented on GitHub (Mar 29, 2025):
Pretty much. You'll want to inquire over at
tcellabout this. My feeling, though, is thattcell(and thus,tviewalso) is not really made for inlining likebubbleteais.