Hey Y'All,
Been doing a bit of work trying to get the
LCL pattern on top of
ncurses:
FP-NCURSES-TUI on GitHubI've been able to do a rudimentary approximation on these:
- TApplication
- TBaseComponent
- TForm - Derives from TBaseComponent
- TLabel - Derives from TBaseComponent
I'm sure some of you, and you now who you are
@pavel, would like me to use generics on the form list and component list.
But I'm not sure if I'll extract the lists into self contained object. Having to create messages manually is not nice and it probably would make sense to do that on the list. Time will tell.

Working with
ncurses is not hard, but it's quite the challenge when you implement an event system. Messages are firing left and right and one looses track on the flow of updates/refreshes/painting. At the moment the thing works, but if I'm fair, it's a bloody mess

Please have a gander and tell me what you think. There will be downloadable executable binaries of the examples in a near future. I'm planning on implementing a Main Menu next, and thar will be the next example. Once I have those 2, I'll drop the GitHub workflows that will enable the executables to be downloaded.
Cheers,
Gus