GUI Toolkit (Compiled Runtime)
Linea now provides compiled-mode GUI windows through native desktop dialog backends in the generated runtime.
APIs
import gui
var ok = gui::window("Title", "Hello GUI", 640, 420)
display ok
var ok2 = gui::buttonWindow("Title", "Press the button", "Click me", 640, 420)
display ok2
Notes
GUI APIs work in compiled mode (`linea compile`) and attempt backends in order: zenity, kdialog, xmessage. If no graphical display is available (no DISPLAY/WAYLAND_DISPLAY) or no backend is installed, the runtime reports an explicit error and returns false. Interpreter mode still reports GUI as unavailable.
Runnable Example
examples/gui_iced_demo.ln