yesnobox

Displays a dialog box, and ask Yes or No to user.

yesnobox <message> <title> [<special>]

Parameters

string <message>
It is displayed in the dialog box.
string <title>
It is displayed as the dialog box title.
integer <special> (optional default=0)
If it is non-zero, following strings in <message> is treated as spacial character.
input output
\\ "\"
\n line feed
\t tab
This option is obsolete. You are recommended to use the strspecial command.

Return Value

System variable <result>
If the user clicks on the "Yes" button, it is set to 1.
If the user clicks on the "No" button, it is set to zero.

Example

:retry
;;; do something ;;;
yesnobox 'Try again?' 'Tera Term'
if result goto retry
end

See also