[GH-ISSUE #1067] Is it possible to create "inline" programs? #772

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

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 fullscreen attribute 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.

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](https://github.com/charmbracelet/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/charmbracelet/bubbletea/blob/master/examples/textarea/main.go): 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](https://github.com/rivo/tview/blob/master/demos/textarea/main.go), 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 `fullscreen` attribute of the root to false, but that only affects the newly launched screen. I see tview makes use of the [gdamore/tcell](https://github.com/gdamore/tcell) library for launching the screen, so perhaps this is beyond its scope.
kerem closed this issue 2026-03-04 01:07:38 +03:00
Author
Owner

@rivo commented on GitHub (Mar 29, 2025):

I see tview makes use of the gdamore/tcell library for launching the screen, so perhaps this is beyond its scope.

Pretty much. You'll want to inquire over at tcell about this. My feeling, though, is that tcell (and thus, tview also) is not really made for inlining like bubbletea is.

<!-- gh-comment-id:2763503399 --> @rivo commented on GitHub (Mar 29, 2025): > I see tview makes use of the [gdamore/tcell](https://github.com/gdamore/tcell) library for launching the screen, so perhaps this is beyond its scope. Pretty much. You'll want to inquire over at `tcell` about this. My feeling, though, is that `tcell` (and thus, `tview` also) is not really made for inlining like `bubbletea` is.
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#772
No description provided.