Altered main menu 'printf' and added title (likely to be configurable later)

master
Aaron Johnon 4 years ago
parent ac9f15e719
commit 332190bfcd

38
bank

@ -23,26 +23,26 @@ hold_menu() {
show_menu() { show_menu() {
#[ "$1" = "init" ] || pre_menu #[ "$1" = "init" ] || pre_menu
printf 'Select a function by number: printf '%s\n' "$(tput bold) --== Bank of Skyfall: Main Menu ==--$(tput sgr0)"\
'Select a function by number:'\
''\
'1. Create Account'\
''\
'2. Deposit'\
'3. Withdrawal'\
'4. Direct Transfer'\
''\
'5. Show All Balances'\
'6. Show Transaction History'\
'7. Show Transactions for Account'\
'8. Show Direct Transfer History'\
''\
'9. Disable Account (!)'\
'0. Enable Account'\
''\
'Q. Quit'\
'' ''
1. Create Account
2. Deposit
3. Withdrawal
4. Direct Transfer
5. Show All Balances
6. Show Transaction History
7. Show Transactions for Account
8. Show Direct Transfer History
9. Disable Account (!)
0. Enable Account
Q. Quit
'
read -p "Selection: " -n1 action read -p "Selection: " -n1 action
case $action in case $action in
1) 1)

Loading…
Cancel
Save