From 332190bfcd2d87a59d8c6564c9a80e33a9a811cf Mon Sep 17 00:00:00 2001 From: Aaron Johnon Date: Tue, 20 Jul 2021 23:04:44 -0500 Subject: [PATCH] Altered main menu 'printf' and added title (likely to be configurable later) --- bank | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/bank b/bank index 8cb7a59..315c11d 100755 --- a/bank +++ b/bank @@ -23,26 +23,26 @@ hold_menu() { show_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 case $action in 1)