Waiting for click with gui-easy

I'm using gui-easy ( gui-easy: Declarative GUIs ) to put up a menu that contains several buttons. The buttons contain functions that do what must be done when the button is clicked?

Putting up the menu works.
But after calling render to display the menu, my program goes on running and quickly get the the end and terminates,

How do I get it to stop running until I click on one of the buttons? It's the button-activation functions that contain the proper continuation of execution at this point, not the main program that created the buttons.

Or do I need a completely different GUI library for this? If so, does anyone have an example?

CN you provide an example? Calling (render …) should block, so the thread it’s on might matter. But I’m also not sure if your use of the word menu might matter :slight_smile: