As someone working on a Nim widget library (and funny enough currently stuck on fixing up the text editing story..) I find this doubly interesting. Now I kinda want to see if I could plug this into a widget for it for kicks. Hmmm…
@sekao you might find this macro I split out recently useful if you want to tryout a Kivy-like api (gui things inspired my need for it): https://github.com/elcritch/cdecl/blob/ee3b06f52e666b2a854eb...
I also found that `useState` pattern from React with the variant library a handy pattern: https://github.com/yglukhov/variant and it’s pretty simple to do if you already have a context object: https://github.com/elcritch/fidgetty/blob/f65876af34797f308b...
Sorry for the link spamming, I just find the overlap of UI state management without OO interesting!
[0] https://github.com/oakes/vim_cubed
[1] https://www.youtube.com/watch?v=cBqBfPRWla8&list=PLxLdEZg8DR...
Does the web includes mobile browsers? Let me try...
How is the accessibility of such TUIs on different display tech?
For terminals there is no way to do this. I think we need a new standard to represent terminal interfaces that preserves this info. I have some ideas on how to do this in a backwards compatible way but I'm on my phone at a BBQ right now so I can elaborate later :P