tview icon indicating copy to clipboard operation
tview copied to clipboard

Is it possible to create "inline" programs?

Open rhodeon opened this issue 1 year ago • 2 comments

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.

rhodeon avatar Jan 05 '25 03:01 rhodeon

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.

rivo avatar Mar 29 '25 15:03 rivo