asciimatics
asciimatics copied to clipboard
Advanced graphical widgets
Not quite sure what these would be just yet, but look at https://github.com/yaronn/blessed-contrib for inspiration.
Hi, This issue had no followups, so I'm hijacking it although my "advanced widget" request is totally not graphical :-) Asciimatics is a really fun lib and looks like a good fit for some form-based apps I'd like to have in a terminal. One gadget that seems to be missing is the (usually) ubiquitious "tab panel", to switch views in a container (like the one at the top of this page :-). Would that be a doable/worthy addition to the toolbox ? Or maybe it isn't there because it's too trivial to put together using the existing API ? (I confess I haven't dug in at all yet, just tried the samples :-). Thanks for any hints, fp
Thanks. Nice to hear positive feedback about the project!
It's not trivial to create a tabbed view with the current widgets, but I could see a way to do it with a new type of Layout, which effectively treated each column as a separate tab. Would require some refactoring of the existing Layout class to put common function into a base class.
Hi, thanks for the quick response ! That would certainly be a useful addition to the lib. Short term, my use case is simple enough that I could probably "cheat" by starting with a single tab panel, and refresh its contents each time a tab button is activated. I'll try to cobble together a POC, but it won't do for most other use cases...
Cool. I'm happy to offer some pointers if you want any help.
Thanks Peter : being an old, slow, self-taught coder, that's an offer I seldom turn down :-)
Wise words. As you have questions, feel free to ask on the gitter channel...