Currently tb_init always clears the screen and switches to the alternate screen buffer. This means that you can only write TUIs which use the whole terminal screen.
Some TUIs instead operate inline in the shell, rendering below the current command prompt. Fzf is a great example, it provides scripts which allow you to press ctrl-t to get an inline tui for selecting a file path to insert into your command. Another use case is providing dynamically updating progress for a running command, eg loading bars, spinners, etc.
My feature request is an alternate api to tb_init (or a change to the tb_init api) which doesn't clear the screen and doesn't switch to the alternate screen, to support these kinds of UIs.
Is this something you'd be willing to incorporate?
Currently
tb_initalways clears the screen and switches to the alternate screen buffer. This means that you can only write TUIs which use the whole terminal screen.Some TUIs instead operate inline in the shell, rendering below the current command prompt. Fzf is a great example, it provides scripts which allow you to press
ctrl-tto get an inline tui for selecting a file path to insert into your command. Another use case is providing dynamically updating progress for a running command, eg loading bars, spinners, etc.My feature request is an alternate api to
tb_init(or a change to thetb_initapi) which doesn't clear the screen and doesn't switch to the alternate screen, to support these kinds of UIs.Is this something you'd be willing to incorporate?