3 ms·
Did a cursory dive through, check: https://textual.textualize.io/tutorial/ https://textual.textualize.io/tutorial/ and https://github.com/Textualize/textual/blo
by ramses0 3y ago
Did a cursory dive through, check: https://textual.textualize.io/tutorial/ https://textual.textualize.io/tutorial/ and https://github.com/Textualize/textual/blob/main/docs/examples/tutorial/stopwatch.py https://github.com/Textualize/textual/blob/main/docs/example...
...what have people had success with in golang-world? Anything reasonably equivalent someone could recommend? There's a fair amount of "stuff" for TUI's in golang, the thing that's very attractive about 'textualize' is it feels very "web-browser-y" and has a nice (scrollable!) table view.
`tview` seems interesting (eg: check `brew install dbui`), but feels a bit more like _you're_ doing all the imperative `if KeyPress.A: do_something()` instead of declarative, nesting navigation, etc. (perhaps that's the difference between an "application-centric/SPA" view of "control all the things!" vs. a document centric: "add components to a page and let them flow").
Any feedback on the items in this list? https://codeberg.org/tecras/awesome-go#advanced-console-uis https://codeberg.org/tecras/awesome-go#advanced-console-uis
- nottorp 3y ago> _you're_ doing all the imperative `if KeyPress.A: do_something()` instead of declarative, You mean they don't hide the message loop as is in fashion and actually let you control it?
- ramses0 3y agoMore like the generally accepted concepts of "selected, active, focus, style, change", and declaring either a visual response or "onEvent" response. A nested hierarchy, components may be complicated internally but expose a simple input and output interface. And yes, something a little more high level than `if key == 'a'` means you're focusing more on the data and display rather than the method. Different abstractions for different use cases, I guess. Any recommendations?
- memefrog 3y agoComputing is broader than the web.
- regularfry 3y ago"In fashion"? What?
- deleted 3y ago[deleted]
- 2023throwawayy 3y agoBubble Tea is fantastic.
- rmwaite 3y agoI second this - anything by Charm is high quality, really.
- camgunz 3y agoI used termui for a project and have no complaints. https://github.com/gizak/termui https://github.com/gizak/termui