system-alert ( caption text -- )


Inputs and outputs
captiona string
texta string

Word description
Displays an application-modal alert dialog box with the given caption and text.

Since the window raised by this word is modal, all processing in all Factor threads will halt until the dialog is dismissed. In an application that makes full use of the UI framework, it would be more appropriate to display a pane gadget in a Factor window. This word is meant primarily to be used to display errors in deployed applications with minimal dependencies on the UI library, such as games.