didn't clear the terminal
tanhauhau opened this issue · comments
source checkbox_input.sh
hawker_centres=( 'Old Airport Road Hawker Centre' 'Golden Mile Food Complex' 'Maxwell Food Centre' 'Newton Food Centre' )
checkbox_input selected_hawkers "Which hawker centres do you prefer?" hawker_centres
echo "Selected indices $(join "${selected_hawkers[@]}")"
echo "Selected Hawker Centers:"
for i in $(seq 1 ${#selected_hawkers[@]}); do
echo "${hawker_centres[${selected_hawkers[$i]}]}"
done
Somehow there's this lex
behind the Selected Hawker Centers:
gg this is a bug, I created another function print
so that it will clear and print at the same time lol, but yea this is something that needs to be resolved xD