Displays a dialog box, and ask Yes or No to user.
yesnobox <message> <title> [<special>]
Displays a dialog box with the <message>, <title>, "Yes" button and "No" button.
If the user clicks on the "Yes" button, the system variable "result" is set to 1. If the user clicks on the "No" button, "result" is set to zero.
If <special> is non-zero, following strings in <message> is treated as spacial character.
If <special> is not specified then 1 is used.
input | output |
---|---|
\\ | "\" |
\n | line feed |
\t | tab |
:retry ;;; do something ;;; yesnobox 'Try again?' 'Tera Term' if result goto retry end