summaryrefslogtreecommitdiff
path: root/tests/test-menus.sh
blob: 9288ff64fdfa5b4425d454d0b2239439ac74e6b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
basedir=$(dirname "`dirname $0`")
source $basedir/src/core/libs/lib-ui.sh
ANSWER="/tmp/.dialog-answer"


var_UI_TYPE=dia
ask_option no 'menu title is this yes yes' 'extra explanation is here mkay' tagA itemA "tag B" 'item B' tag-c item\ C
echo "return code was $?"

var_UI_TYPE=cli
ask_option tag-c 'menu title is this yes yes' 'extra explanation is here mkay' tagA itemA "tag B" 'item B' tag-c item\ C
echo "return code was $?"