The simplest form of dialog is a message dialog. The function
display-message
behaves very much like
format
.
(display-message "Hello world")
(display-message
"This function is ~S"
'display-message)
Figure 11.2 A second message dialog
Another simple dialog asks the user a question and returns
t
or
nil
depending on whether the user has chosen yes or no. This function is
confirm-yes-or-no
.
(confirm-yes-or-no
"Do you own a pet?")
Figure 11.3 A message dialog prompting for confirmation
For more control over such a dialiog, use the function
prompt-for-confirmation
. See the
LispWorks CAPI Reference Manual
for details.
CAPI User Guide (Unix version) - 30 Aug 2011