xref: /freebsd/contrib/dialog/samples/editbox3 (revision a96ef4501919d7ac08e94e98dc34b0bdd744802b)
14c8945a0SNathan Whitehorn#!/bin/sh
2*a96ef450SBaptiste Daroussin# $Id: editbox3,v 1.8 2020/11/26 00:03:58 tom Exp $
34c8945a0SNathan Whitehorn# example with extra- and help-buttons
44c8945a0SNathan Whitehorn
54c8945a0SNathan Whitehorn. ./setup-vars
64c8945a0SNathan Whitehorn
74c8945a0SNathan Whitehorn. ./setup-edit
84c8945a0SNathan Whitehorn
94c8945a0SNathan Whitehorncat << EOF > $input
104c8945a0SNathan WhitehornEOF
114c8945a0SNathan Whitehorn
124c8945a0SNathan Whitehorn$DIALOG --title "EDIT BOX" \
134c8945a0SNathan Whitehorn	--extra-button \
144c8945a0SNathan Whitehorn	--help-button \
154c8945a0SNathan Whitehorn	--fixed-font "$@" --editbox $input 0 0 2>$output
16*a96ef450SBaptiste Daroussinreturncode=$?
174c8945a0SNathan Whitehorn
184c8945a0SNathan Whitehorn. ./report-edit
19