merge: Merge main
This commit is contained in:
@@ -24,6 +24,7 @@ _key_input() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
local input="${a}${b}"
|
local input="${a}${b}"
|
||||||
|
# shellcheck disable=SC1087
|
||||||
case "$input" in
|
case "$input" in
|
||||||
"$ESC[A") echo up ;;
|
"$ESC[A") echo up ;;
|
||||||
"$ESC[B") echo down ;;
|
"$ESC[B") echo down ;;
|
||||||
|
|||||||
@@ -41,13 +41,13 @@ validate_password() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
# Password prompt
|
# Password prompt
|
||||||
#pass=$(with_validate 'password "Enter random password"' validate_password)
|
pass=$(with_validate 'password "Enter random password"' validate_password)
|
||||||
|
|
||||||
# Checkbox
|
# Checkbox
|
||||||
checked=$(checkbox "Select one or more items" "${options[@]}")
|
checked=$(checkbox "Select one or more items" "${options[@]}")
|
||||||
|
|
||||||
# text input with validation
|
# text input with validation
|
||||||
#text=$(with_validate 'input "Please enter something and confirm with enter"' validate_present)
|
text=$(with_validate 'input "Please enter something and confirm with enter"' validate_present)
|
||||||
|
|
||||||
# Select
|
# Select
|
||||||
option=$(list "Select one item" "${options[@]}")
|
option=$(list "Select one item" "${options[@]}")
|
||||||
|
|||||||
Reference in New Issue
Block a user