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