xref: /freebsd/contrib/dialog/samples/yesno2 (revision 4c8945a06b01a5c8122cdeb402af36bb46a06acc)
1*4c8945a0SNathan Whitehorn#!/bin/sh
2*4c8945a0SNathan Whitehorn# $Id: yesno2,v 1.7 2010/01/13 10:40:39 tom Exp $
3*4c8945a0SNathan Whitehorn
4*4c8945a0SNathan Whitehorn. ./setup-vars
5*4c8945a0SNathan Whitehorn
6*4c8945a0SNathan Whitehorn$DIALOG --title "YES/NO BOX" "$@" \
7*4c8945a0SNathan Whitehorn        --yesno "Hi, this is a yes/no dialog box. You can use this to ask \
8*4c8945a0SNathan Whitehornquestions that have an answer of either yes or no. \
9*4c8945a0SNathan WhitehornBTW, do you notice that long lines will be automatically \
10*4c8945a0SNathan Whitehornwrapped around so that they can fit in the box? You can \
11*4c8945a0SNathan Whitehornalso control line breaking explicitly by inserting \
12*4c8945a0SNathan Whitehorn'backslash n' at any place you like, but in this case, \
13*4c8945a0SNathan Whitehornauto wrap around will be disabled and you will have to \
14*4c8945a0SNathan Whitehorncontrol line breaking yourself." 0 0
15*4c8945a0SNathan Whitehorn
16*4c8945a0SNathan Whitehornretval=$?
17*4c8945a0SNathan Whitehorn
18*4c8945a0SNathan Whitehorn. ./report-yesno
19