HACKER Q&A
📣 monroewalker

Are there any high-level TUI tools?


I've been using LazyGit [1] for a while and its made me realize how much easier a terminal ui can make things. It often makes me wish there was a TUI for the specific workflows I have when working in a given repo. Are there any programs that take some config file and produce a TUI as output? Eg. you have a file with a list of commands and aliases and it produces the corresponding TUI? Or are there any libraries which take minimal effort to add TUI elements to?

[1] https://github.com/jesseduffield/lazygit


  👤 WalterGR Accepted Answer ✓
I know you're looking for something even more high-level, but here are the highest-level tools I've come across recently:

https://docs.poshtools.com/powershell-pro-tools-documentatio...

https://github.com/bczsalba/pytermgui

https://github.com/Textualize/textual - discussed here: https://news.ycombinator.com/item?id=31143327

Auto-generation of UI was an area of active research circa the early 2000s. I don't know if anything came of said research.


👤 yesenadam
I don't suppose Charm is the kind of thing you mean? Maybe it is.

https://charm.sh/

e.g. Bubble Tea https://github.com/charmbracelet/bubbletea

HN discussion 4 months ago (213 comments) https://news.ycombinator.com/item?id=30048332


👤 msmenardi
As far as I know you'll still have to write a program for terminal applications.

Check out NotCurses (https://github.com/dankamongmen/notcurses) for some nifty functionality (including pictures!)


👤 t-3
There's dialog: https://linux.die.net/man/1/dialog , which you've probably seen in action if you've ever done a 'make menuconfig'.