14c8945a0SNathan Whitehorn#!/bin/sh 2*a96ef450SBaptiste Daroussin# $Id: yesno-both,v 1.6 2020/11/26 00:05:52 tom Exp $ 34c8945a0SNathan Whitehorn 44c8945a0SNathan Whitehorn. ./setup-vars 54c8945a0SNathan Whitehorn 64c8945a0SNathan Whitehorn$DIALOG --title "YES/NO/MAYBE BOX" \ 74c8945a0SNathan Whitehorn --clear \ 84c8945a0SNathan Whitehorn --ok-label "Next" \ 94c8945a0SNathan Whitehorn --no-label "Cancel" \ 104c8945a0SNathan Whitehorn --extra-label "Previous" --extra-button \ 114c8945a0SNathan Whitehorn --help-button "$@" \ 124c8945a0SNathan Whitehorn --yesno "Hi, this is a yes/no dialog box with its labels changed. \ 134c8945a0SNathan Whitehorn You can use this to ask \ 144c8945a0SNathan Whitehorn questions that have an answer of either yes or no (or maybe). \ 154c8945a0SNathan Whitehorn BTW, do you notice that long lines will be automatically \ 164c8945a0SNathan Whitehorn wrapped around so that they can fit in the box? You can \ 174c8945a0SNathan Whitehorn also control line breaking explicitly by inserting \ 184c8945a0SNathan Whitehorn 'backslash n' at any place you like, but in this case, \ 194c8945a0SNathan Whitehorn auto wrap around will be disabled and you will have to \ 204c8945a0SNathan Whitehorn control line breaking yourself." 15 61 214c8945a0SNathan Whitehorn 22*a96ef450SBaptiste Daroussinreturncode=$? 234c8945a0SNathan Whitehorn 244c8945a0SNathan Whitehorn. ./report-yesno 25