Skip to content

Commit

Permalink
input function upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
vaisarger committed Aug 28, 2013
1 parent ed844fc commit ad4222f
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 312 deletions.
3 changes: 2 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ wait_for -> "[text]" => ( 1 argument, PID to kill to "wait
terminate_wait_for => ( 1 argument only in easydialog, otherwise, NO argument ) (@)
fselect -> "<init. dir.>" => ( 1 <optional> argument, box output to "${dir_tmp}/${file_tmp}" and STDERR ) (#)
dselect -> "<init. dir.>" => ( 1 <optional> argument, box output to "${dir_tmp}/${file_tmp}" and STDERR ) (#)
input -> 1 "[init 1]" => ( 2 arguments, box output to "${dir_tmp}/${file_tmp}" and STDERR )
input -> 1 "<label 1>" "[init 1]" => ( 2-3 arguments, box output to "${dir_tmp}/${file_tmp}" and STDERR )
input -> 2 "[label 1]" "[init 1]" "[label 2]" "[init 2]" => ( 5 arguments, box output to "${dir_tmp}/${file_tmp}" and STDERR )
input -> 3 "[label 1]" "[init 1]" "[label 2]" "[init 2]" "[label 3]" "[init 3]" => ( 7 arguments, box output to "${dir_tmp}/${file_tmp}" and STDERR )
menu -> "[item 1]" ... "[item n]" => ( [n] arguments, box output to "${dir_tmp}/${file_tmp}" and STDERR ) (%)
Expand Down Expand Up @@ -152,6 +152,7 @@ file="$(0< "${dir_tmp}/${file_tmp}" )"

5)
input 1 "(write here IP address)"
input 1 "Please, write IP address" "192.168.1.1"
input 3 "Username" "root" "IP address" "192.168.0.1" "Destination directory" "/tmp"
IFS=$'\n' ; choices=( $(0< "${dir_tmp}/${file_tmp}" ) ) ; IFS=$' \t\n'
user="${choices[0]}"
Expand Down
Loading

0 comments on commit ad4222f

Please sign in to comment.