summaryrefslogtreecommitdiff
path: root/tests/test-menus.sh
blob: 58b2ba57b8784f72f6cee9215016c8024514cdfc (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' 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' tagA itemA "tag B" 'item B' tag-c item\ C
echo "return code was $?"