xref: /freebsd/contrib/dialog/samples/setup-vars (revision a96ef4501919d7ac08e94e98dc34b0bdd744802b)
12a3e3873SBaptiste Daroussin#!/bin/sh
2*a96ef450SBaptiste Daroussin# $Id: setup-vars,v 1.5 2020/11/25 23:06:52 tom Exp $
34c8945a0SNathan Whitehorn# vile:shmode
44c8945a0SNathan Whitehorn
57a1c0d96SNathan Whitehorn# These symbols are defined to use in the sample shell scripts to make them
67a1c0d96SNathan Whitehorn# more readable.  But they are (intentionally) not exported.  If they were
77a1c0d96SNathan Whitehorn# exported, they would also be visible in the dialog program (a subprocess).
87a1c0d96SNathan Whitehorn
9*a96ef450SBaptiste Daroussin: "${DIALOG=dialog}"
104c8945a0SNathan Whitehorn
11*a96ef450SBaptiste Daroussin: "${DIALOG_OK=0}"
12*a96ef450SBaptiste Daroussin: "${DIALOG_CANCEL=1}"
13*a96ef450SBaptiste Daroussin: "${DIALOG_HELP=2}"
14*a96ef450SBaptiste Daroussin: "${DIALOG_EXTRA=3}"
15*a96ef450SBaptiste Daroussin: "${DIALOG_ITEM_HELP=4}"
16*a96ef450SBaptiste Daroussin: "${DIALOG_TIMEOUT=5}"
17*a96ef450SBaptiste Daroussin: "${DIALOG_ESC=255}"
182a3e3873SBaptiste Daroussin
19*a96ef450SBaptiste Daroussin: "${SIG_NONE=0}"
20*a96ef450SBaptiste Daroussin: "${SIG_HUP=1}"
21*a96ef450SBaptiste Daroussin: "${SIG_INT=2}"
22*a96ef450SBaptiste Daroussin: "${SIG_QUIT=3}"
23*a96ef450SBaptiste Daroussin: "${SIG_KILL=9}"
24*a96ef450SBaptiste Daroussin: "${SIG_TERM=15}"
25