Open rubyFeedback opened 1 year ago
This is a duplicate of this past request: https://github.com/AndyObtiva/glimmer/issues/23
It is a good idea, but there are more pressing higher priorities relating to existing Glimmer projects at the moment.
Thank you for reporting. Please don’t report again to avoid creating more duplicates. Otherwise, for the time being, you could try to build a Glimmer DSL for TUI yourself if you really need it before I am available to build it myself.
So, as always, please feel free to ignore/disregard.
Lately I was thinking of oldschool terminal interfaces and ... curses popped up. Aka ncurses.
"Accidentally" I found this gem:
https://github.com/Muriel-Salvan/curses_menu
I tested some examples, such as the submenu variant:
https://i.imgur.com/H6Jo3rF.png
Sure, does not look great, but we can kind of have a terminal on the commandline, which can be useful in some cases.
My thinking here was this, though: "what if glimmer could abstract away all of that for us" aka write the code logic once and then glimmer auto-generates and yields all these thingies, including the ncurses part. So, a toplevel menu could then be translated into such a submenu, and so on and so forth.
I am sure you have more than enough things on your hands, but I think if this would be possible in glimmer one day, that would be pretty cool. Who knows - perhaps some rubocop-style autogenerator for glimmer where we can autogenerate all code for other languages, and then as our final step obsolete us, enter ChatGPT (aka machines write the code) and call it a day! Anyway, I only wanted to point this out quickly.