fix: rework menus and UI

This commit is contained in:
th33xitus
2021-01-28 18:54:02 +01:00
parent 0c4f1a5378
commit f8aa88f480
6 changed files with 98 additions and 242 deletions

View File

@@ -38,3 +38,26 @@ kiauh_update_msg(){
echo -e "| ${yellow}either to the script or the installable components!${default} | "
bottom_border
}
##############################################################################################
#********************************************************************************************#
##############################################################################################
### TODO: rework other menus to make use of the following functions too and make them more readable
do_action(){
clear
print_header
### $1 is the action the user wants to fire
$1
print_msg && clear_msg
### $2 is the menu the user usually gets directed back to after an action is completed
$2
}
deny_action(){
clear
print_header
print_unkown_cmd
print_msg && clear_msg
$1
}