asciimatics icon indicating copy to clipboard operation
asciimatics copied to clipboard

Advanced graphical widgets

Open peterbrittain opened this issue 7 years ago • 6 comments

Not quite sure what these would be just yet, but look at https://github.com/yaronn/blessed-contrib for inspiration.

peterbrittain avatar Sep 16 '17 23:09 peterbrittain

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

fpp-gh avatar May 22 '19 15:05 fpp-gh

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.

peterbrittain avatar May 22 '19 20:05 peterbrittain

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...

fpp-gh avatar May 23 '19 08:05 fpp-gh

Cool. I'm happy to offer some pointers if you want any help.

peterbrittain avatar May 23 '19 08:05 peterbrittain

Thanks Peter : being an old, slow, self-taught coder, that's an offer I seldom turn down :-)

fpp-gh avatar May 23 '19 09:05 fpp-gh

Wise words. As you have questions, feel free to ask on the gitter channel...

peterbrittain avatar May 24 '19 06:05 peterbrittain