You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
dotfiles/scripts/sshto/core/run_dialog.inc

15 lines
455 B

run_dialog() {
refresh
command=$(dialog --ok-label "RUN" --cancel-label "BACK" --output-fd 1 \
--extra-button --extra-label "CONNECT" --colors \
--menu "Select command to run on host \Z4$target\Z0. $USERNOTE" 0 0 0 "${cmdlist[@]}")
case $command:$? in
*:0) cmd;;
*:3) go_to_target;;
*:*) main_dialog;;
esac
run_dialog
}